File tree Expand file tree Collapse file tree 6 files changed +25
-6
lines changed Expand file tree Collapse file tree 6 files changed +25
-6
lines changed Original file line number Diff line number Diff line change @@ -437,6 +437,15 @@ build_flags = -DUSE_TINYUSB -DBUILD_OFFLINE_ONLY
437437; Once https://github.com/platformio/platformio-core > 6.1.11 these can be removed
438438lib_ignore = WiFiNINA, WiFi101, Adafruit Zero DMA Library
439439
440+ [env:adafruit_metro_rp2350]
441+ platform = https://github.com/brentru/platform-raspberrypi.git# develop
442+ board = adafruit_metro_rp2350
443+ platform_packages = framework-arduinopico@https://github.com/earlephilhower/arduino-pico.git
444+ board_build.filesystem_size = 0.5m
445+ build_flags = -DUSE_TINYUSB -DBUILD_OFFLINE_ONLY
446+ ; Once https://github.com/platformio/platformio-core > 6.1.11 these can be removed
447+ lib_ignore = WiFiNINA, WiFi101, Adafruit Zero DMA Library
448+
440449[env:raspberypi_picow]
441450extends = common:rp2040
442451
Original file line number Diff line number Diff line change 209209#define STATUS_NEOPIXEL_PIN PIN_NEOPIXEL
210210#define STATUS_NEOPIXEL_NUM 1
211211#define SD_USE_SPI_1
212+ #elif defined(ARDUINO_ADAFRUIT_METRO_RP2350 )
213+ #define BOARD_ID "metro-rp2350"
214+ #define USE_TINYUSB
215+ #define USE_STATUS_NEOPIXEL
216+ #define STATUS_NEOPIXEL_PIN PIN_NEOPIXEL
217+ #define STATUS_NEOPIXEL_NUM NUM_NEOPIXEL
218+ #define SD_USE_SPI_1
212219#else
213220#warning "Board type not identified within Wippersnapper_Boards.h!"
214221#endif
Original file line number Diff line number Diff line change 99// All text above must be included in any redistribution.
1010
1111#include " ws_adapters.h"
12- ws_adapter_wifi wipper;
13- // Uncomment the following line to use the offline adapter for Pico
14- // ws_adapter_offline wipper;
12+ // ws_adapter_wifi wipper;
13+ // Uncomment the following line to use the offline adapter for Pico
14+ ws_adapter_offline wipper;
1515#define WS_DEBUG // Enable debug output!
1616
1717void setup () {
Original file line number Diff line number Diff line change 1818
1919#if defined(ARDUINO_RASPBERRY_PI_PICO) || \
2020 defined (ARDUINO_RASPBERRY_PI_PICO_2) || \
21- defined(ARDUINO_ADAFRUIT_FEATHER_RP2040_ADALOGGER)
21+ defined(ARDUINO_ADAFRUIT_FEATHER_RP2040_ADALOGGER) || \
22+ defined(ARDUINO_ADAFRUIT_METRO_RP2350)
2223
2324#define PICO_CONNECT_TIMEOUT_MS 20000 /* !< Connection timeout (in ms) */
2425#define PICO_CONNECT_RETRY_DELAY_MS 200 /* !< delay time between retries. */
Original file line number Diff line number Diff line change 2929 defined(ARDUINO_ADAFRUIT_QTPY_ESP32S3_N4R2) || \
3030 defined(ARDUINO_RASPBERRY_PI_PICO) || \
3131 defined(ARDUINO_RASPBERRY_PI_PICO_2) || \
32- defined(ARDUINO_ADAFRUIT_FEATHER_RP2040_ADALOGGER)
32+ defined(ARDUINO_ADAFRUIT_FEATHER_RP2040_ADALOGGER) || \
33+ defined(ARDUINO_ADAFRUIT_METRO_RP2350)
3334#include " Wippersnapper_FS.h"
3435// On-board external flash (QSPI or SPI) macros should already
3536// defined in your board variant if supported
Original file line number Diff line number Diff line change @@ -45,7 +45,8 @@ typedef ws_wifi_ninafw ws_adapter_wifi;
4545 */
4646#elif defined(ARDUINO_RASPBERRY_PI_PICO_2 ) || \
4747 defined(ARDUINO_RASPBERRY_PI_PICO ) || \
48- defined(ARDUINO_ADAFRUIT_FEATHER_RP2040_ADALOGGER )
48+ defined(ARDUINO_ADAFRUIT_FEATHER_RP2040_ADALOGGER ) || \
49+ defined(ARDUINO_ADAFRUIT_METRO_RP2350 )
4950#include "adapters/offline/ws_offline_pico.h"
5051typedef ws_offline_pico ws_adapter_offline ;
5152#else
You can’t perform that action at this time.
0 commit comments