From 6986a8d680421aafd4141962f1684cc4c693ddb3 Mon Sep 17 00:00:00 2001 From: Mike Causer Date: Sat, 24 Jul 2021 02:06:38 +1000 Subject: [PATCH] rp2/boards/SPARKFUN_PROMICRO: Configure UART/I2C/SPI default pins. --- .../boards/SPARKFUN_PROMICRO/mpconfigboard.h | 25 ++++++++++++++++--- 1 file changed, 22 insertions(+), 3 deletions(-) diff --git a/ports/rp2/boards/SPARKFUN_PROMICRO/mpconfigboard.h b/ports/rp2/boards/SPARKFUN_PROMICRO/mpconfigboard.h index d6c8007ba0..65b29eecd1 100644 --- a/ports/rp2/boards/SPARKFUN_PROMICRO/mpconfigboard.h +++ b/ports/rp2/boards/SPARKFUN_PROMICRO/mpconfigboard.h @@ -1,3 +1,22 @@ -// Board and hardware specific configuration -#define MICROPY_HW_BOARD_NAME "SparkFun Pro Micro RP2040" -#define MICROPY_HW_FLASH_STORAGE_BYTES (15 * 1024 * 1024) +// https://www.sparkfun.com/products/17717 + +#define MICROPY_HW_BOARD_NAME "SparkFun Pro Micro RP2040" +#define MICROPY_HW_FLASH_STORAGE_BYTES (15 * 1024 * 1024) + +#define MICROPY_HW_USB_VID (0x1B4F) +#define MICROPY_HW_USB_PID (0x0026) + +#define MICROPY_HW_UART1_TX (8) +#define MICROPY_HW_UART1_RX (9) +#define MICROPY_HW_UART1_CTS (10) +#define MICROPY_HW_UART1_RTS (11) + +// Qwiic on I2C0 +#define MICROPY_HW_I2C0_SCL (17) +#define MICROPY_HW_I2C0_SDA (16) + +#define MICROPY_HW_SPI0_SCK (22) +#define MICROPY_HW_SPI0_MOSI (23) +#define MICROPY_HW_SPI0_MISO (20) + +// NeoPixel data GPIO25, power not toggleable