summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Causer <mcauser@gmail.com>2021-07-24 02:06:38 +1000
committerDamien George <damien@micropython.org>2021-08-01 23:01:36 +1000
commit6986a8d680421aafd4141962f1684cc4c693ddb3 (patch)
tree97714a4e339be2cd198a477a434488971d608c1f
parent49497084f18fe05248ee35e474f5f3d559671fd1 (diff)
rp2/boards/SPARKFUN_PROMICRO: Configure UART/I2C/SPI default pins.
-rw-r--r--ports/rp2/boards/SPARKFUN_PROMICRO/mpconfigboard.h25
1 files changed, 22 insertions, 3 deletions
diff --git a/ports/rp2/boards/SPARKFUN_PROMICRO/mpconfigboard.h b/ports/rp2/boards/SPARKFUN_PROMICRO/mpconfigboard.h
index d6c8007ba..65b29eecd 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