Plasma3350: Add WL ext GPIOs and fallback.

This commit is contained in:
Phil Howard 2024-09-30 14:08:14 +01:00
parent f9a22ce994
commit d099845fa6
2 changed files with 12 additions and 1 deletions

View File

@ -1,6 +1,14 @@
// Board and hardware specific configuration
#define MICROPY_HW_FLASH_STORAGE_BYTES (PICO_FLASH_SIZE_BYTES - (2 * 1024 * 1024))
#ifndef CYW43_WL_GPIO_COUNT
// Shim the EXT GPIOs because we can't specify a variant pins.csv
// Remap them to LED R, G and B respectively on non-W builds
#define pin_EXT_GPIO0 pin_GPIO16
#define pin_EXT_GPIO1 pin_GPIO17
#define pin_EXT_GPIO2 pin_GPIO18
#endif
// I2C0 (non-default)
#define MICROPY_HW_I2C0_SCL (PLASMA2350_SDA_PIN)
#define MICROPY_HW_I2C0_SDA (PLASMA2350_SCL_PIN)

View File

@ -31,3 +31,6 @@ LED_R,GPIO16
LED_G,GPIO17
LED_B,GPIO18
USER_SW,GPIO22
WL_GPIO0,EXT_GPIO0
WL_GPIO1,EXT_GPIO1
WL_GPIO2,EXT_GPIO2
1 GP0 GPIO0
31 LED_G GPIO17
32 LED_B GPIO18
33 USER_SW GPIO22
34 WL_GPIO0 EXT_GPIO0
35 WL_GPIO1 EXT_GPIO1
36 WL_GPIO2 EXT_GPIO2