diff --git a/micropython/board/PIMORONI_PLASMA2350/mpconfigboard.h b/micropython/board/PIMORONI_PLASMA2350/mpconfigboard.h index 0ef5a1a..d99e39a 100644 --- a/micropython/board/PIMORONI_PLASMA2350/mpconfigboard.h +++ b/micropython/board/PIMORONI_PLASMA2350/mpconfigboard.h @@ -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) diff --git a/micropython/board/PIMORONI_PLASMA2350/pins.csv b/micropython/board/PIMORONI_PLASMA2350/pins.csv index ca53790..a300583 100644 --- a/micropython/board/PIMORONI_PLASMA2350/pins.csv +++ b/micropython/board/PIMORONI_PLASMA2350/pins.csv @@ -30,4 +30,7 @@ LED,GPIO17 LED_R,GPIO16 LED_G,GPIO17 LED_B,GPIO18 -USER_SW,GPIO22 \ No newline at end of file +USER_SW,GPIO22 +WL_GPIO0,EXT_GPIO0 +WL_GPIO1,EXT_GPIO1 +WL_GPIO2,EXT_GPIO2 \ No newline at end of file