summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Causer <mcauser@gmail.com>2021-07-24 02:08:01 +1000
committerDamien George <damien@micropython.org>2021-08-01 23:02:30 +1000
commite7a3e6ee6a1d5073dc0590e386f86152d5744539 (patch)
treef8bb3c1cdb7ad01167ef5ad39928b43f8cd0ecaf
parent6986a8d680421aafd4141962f1684cc4c693ddb3 (diff)
rp2/boards/SPARKFUN_THINGPLUS: Configure I2C/SPI default pins.
-rw-r--r--ports/rp2/boards/SPARKFUN_THINGPLUS/mpconfigboard.h34
1 files changed, 31 insertions, 3 deletions
diff --git a/ports/rp2/boards/SPARKFUN_THINGPLUS/mpconfigboard.h b/ports/rp2/boards/SPARKFUN_THINGPLUS/mpconfigboard.h
index 9749acd25..f88ba5dd6 100644
--- a/ports/rp2/boards/SPARKFUN_THINGPLUS/mpconfigboard.h
+++ b/ports/rp2/boards/SPARKFUN_THINGPLUS/mpconfigboard.h
@@ -1,3 +1,31 @@
-// Board and hardware specific configuration
-#define MICROPY_HW_BOARD_NAME "SparkFun Thing Plus RP2040"
-#define MICROPY_HW_FLASH_STORAGE_BYTES (15 * 1024 * 1024)
+// https://www.sparkfun.com/products/17745
+
+#define MICROPY_HW_BOARD_NAME "SparkFun Thing Plus RP2040"
+#define MICROPY_HW_FLASH_STORAGE_BYTES (15 * 1024 * 1024)
+
+#define MICROPY_HW_USB_VID (0x1B4F)
+#define MICROPY_HW_USB_PID (0x0025)
+
+#define MICROPY_HW_I2C0_SCL (17)
+#define MICROPY_HW_I2C0_SDA (16)
+
+// Qwiic on I2C1
+#define MICROPY_HW_I2C1_SCL (7)
+#define MICROPY_HW_I2C1_SDA (6)
+
+#define MICROPY_HW_SPI0_SCK (2)
+#define MICROPY_HW_SPI0_MOSI (3)
+#define MICROPY_HW_SPI0_MISO (4)
+
+// MicroSD on SPI1
+#define MICROPY_HW_SPI1_SCK (14)
+#define MICROPY_HW_SPI1_MOSI (15)
+#define MICROPY_HW_SPI1_MISO (12)
+
+// Battery fuel guage MAX17048 on I2C1
+// BATT_ALERT GPIO24
+
+// NeoPixel data GPIO8, power not toggleable
+// data out is broken out to a pin
+
+// Blue user LED GPIO25