rp2/boards: Add Adafruit QT Py RP2040.

This commit is contained in:
Mike Causer 2021-07-24 02:12:52 +10:00 committed by Damien George
parent 043848158d
commit 02cbe018a5
2 changed files with 29 additions and 0 deletions

View File

@ -0,0 +1 @@
# cmake file for Adafruit QT Py RP2040

View File

@ -0,0 +1,28 @@
// https://www.adafruit.com/product/4900
// https://learn.adafruit.com/adafruit-qt-py-2040/pinouts
#define MICROPY_HW_BOARD_NAME "Adafruit QT Py RP2040"
#define MICROPY_HW_FLASH_STORAGE_BYTES (7 * 1024 * 1024)
#define MICROPY_HW_USB_VID (0x239A)
#define MICROPY_HW_USB_PID (0x80F8)
#define MICROPY_HW_UART1_TX (20)
#define MICROPY_HW_UART1_RX (5)
#define MICROPY_HW_UART1_CTS (10)
#define MICROPY_HW_UART1_RTS (7)
#define MICROPY_HW_I2C0_SCL (25)
#define MICROPY_HW_I2C0_SDA (24)
// STEMMA QT / Qwiic on I2C1
#define MICROPY_HW_I2C1_SCL (23)
#define MICROPY_HW_I2C1_SDA (22)
#define MICROPY_HW_SPI0_SCK (6)
#define MICROPY_HW_SPI0_MOSI (3)
#define MICROPY_HW_SPI0_MISO (4)
// NeoPixel data GPIO12, power GPIO11
// Boot button GPIO21