Plasma3350: Add WL ext GPIOs and fallback.
This commit is contained in:
parent
f9a22ce994
commit
d099845fa6
@ -1,6 +1,14 @@
|
|||||||
// Board and hardware specific configuration
|
// Board and hardware specific configuration
|
||||||
#define MICROPY_HW_FLASH_STORAGE_BYTES (PICO_FLASH_SIZE_BYTES - (2 * 1024 * 1024))
|
#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)
|
// I2C0 (non-default)
|
||||||
#define MICROPY_HW_I2C0_SCL (PLASMA2350_SDA_PIN)
|
#define MICROPY_HW_I2C0_SCL (PLASMA2350_SDA_PIN)
|
||||||
#define MICROPY_HW_I2C0_SDA (PLASMA2350_SCL_PIN)
|
#define MICROPY_HW_I2C0_SDA (PLASMA2350_SCL_PIN)
|
||||||
|
|||||||
@ -30,4 +30,7 @@ LED,GPIO17
|
|||||||
LED_R,GPIO16
|
LED_R,GPIO16
|
||||||
LED_G,GPIO17
|
LED_G,GPIO17
|
||||||
LED_B,GPIO18
|
LED_B,GPIO18
|
||||||
USER_SW,GPIO22
|
USER_SW,GPIO22
|
||||||
|
WL_GPIO0,EXT_GPIO0
|
||||||
|
WL_GPIO1,EXT_GPIO1
|
||||||
|
WL_GPIO2,EXT_GPIO2
|
||||||
|
Loading…
Reference in New Issue
Block a user