Skip to content

Commit 0279e90

Browse files
committed
Add Pico2W definition to boards list + fix LEDs
1 parent ab832c2 commit 0279e90

File tree

2 files changed

+9
-19
lines changed

2 files changed

+9
-19
lines changed

platformio.ini

Lines changed: 2 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -533,7 +533,7 @@ build_flags =
533533
-DWIFICC=CYW43_COUNTRY_UK
534534
-DUSE_TINYUSB
535535
; -DARDUINO_ARCH_RP2040
536-
; -DUSBD_MAX_POWER_MA=500
536+
; -DUSBD_MAX_POWER_MA=250
537537
; -DPICO_CYW43_SUPPORTED=1
538538

539539
[env:raspberypi_pico2w_debug]
@@ -555,7 +555,7 @@ build_flags =
555555
; -UARDUINO
556556
; -DPICO_BUILD
557557
-DARDUINO_ARCH_RP2040
558-
-DUSBD_MAX_POWER_MA=500
558+
-DUSBD_MAX_POWER_MA=250
559559
-DPICO_CYW43_SUPPORTED=1
560560
-DWIFICC=CYW43_COUNTRY_UK
561561
; -DDEBUG
@@ -581,18 +581,3 @@ build_flags =
581581
; ; No USB stack
582582
; build_flags = -DPIO_FRAMEWORK_ARDUINO_NO_USB
583583
; -DPIO_FRAMEWORK_ARDUINO_ENABLE_IPV6
584-
585-
586-
[env:pimoroni_pico_plus_2w]
587-
extends = common:rp2040
588-
platform = https://github.com/tyeth/maxgerhardt_platform-raspberrypi.git#pico2w
589-
; platform = https://github.com/maxgerhardt/platform-raspberrypi.git#develop
590-
platform_packages =
591-
framework-arduinopico@https://github.com/earlephilhower/arduino-pico.git
592-
board = pimoroni_pico_plus_2w
593-
build_flags =
594-
-DWIFICC=CYW43_COUNTRY_UK
595-
-DUSE_TINYUSB
596-
; -DARDUINO_ARCH_RP2040
597-
; -DUSBD_MAX_POWER_MA=500
598-
; -DPICO_CYW43_SUPPORTED=1

src/Wippersnapper_Boards.h

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,11 +185,16 @@
185185
#define BOARD_ID "mkrwifi1010"
186186
#define USE_STATUS_LED
187187
#define STATUS_LED_PIN 6
188-
#elif defined(ARDUINO_RASPBERRY_PI_PICO_W) || defined(ARDUINO_ARCH_RP2040)
188+
#elif defined(ARDUINO_RASPBERRY_PI_PICO_W)
189189
#define BOARD_ID "rpi-pico-w"
190190
#define USE_TINYUSB
191191
#define USE_STATUS_LED
192-
#define STATUS_LED_PIN 32
192+
#define STATUS_LED_PIN LED_BUILTIN
193+
#elif defined(ARDUINO_RASPBERRY_PI_PICO_2W)
194+
#define BOARD_ID "rpi-pico-2w"
195+
#define USE_TINYUSB
196+
#define USE_STATUS_LED
197+
#define STATUS_LED_PIN LED_BUILTIN
193198
#else
194199
#warning "Board type not identified within Wippersnapper_Boards.h!"
195200
#endif

0 commit comments

Comments
 (0)