Skip to content

Commit

Permalink
Plasma3350: Add WL ext GPIOs and fallback.
Browse files Browse the repository at this point in the history
  • Loading branch information
Gadgetoid committed Sep 30, 2024
1 parent bddaf2a commit 6c6a839
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
8 changes: 8 additions & 0 deletions micropython/board/PIMORONI_PLASMA2350/mpconfigboard.h
Original file line number Diff line number Diff line change
@@ -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)
Expand Down
5 changes: 4 additions & 1 deletion micropython/board/PIMORONI_PLASMA2350/pins.csv
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,7 @@ LED,GPIO17
LED_R,GPIO16
LED_G,GPIO17
LED_B,GPIO18
USER_SW,GPIO22
USER_SW,GPIO22
WL_GPIO0,EXT_GPIO0
WL_GPIO1,EXT_GPIO1
WL_GPIO2,EXT_GPIO2

0 comments on commit 6c6a839

Please sign in to comment.