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
437
437
; Once https://github.com/platformio/platformio-core > 6.1.11 these can be removed
438
438
lib_ignore = WiFiNINA, WiFi101, Adafruit Zero DMA Library
439
439
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
+
440
449
[env:raspberypi_picow]
441
450
extends = common:rp2040
442
451
Original file line number Diff line number Diff line change 209
209
#define STATUS_NEOPIXEL_PIN PIN_NEOPIXEL
210
210
#define STATUS_NEOPIXEL_NUM 1
211
211
#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
212
219
#else
213
220
#warning "Board type not identified within Wippersnapper_Boards.h!"
214
221
#endif
Original file line number Diff line number Diff line change 9
9
// All text above must be included in any redistribution.
10
10
11
11
#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;
15
15
#define WS_DEBUG // Enable debug output!
16
16
17
17
void setup () {
Original file line number Diff line number Diff line change 18
18
19
19
#if defined(ARDUINO_RASPBERRY_PI_PICO) || \
20
20
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)
22
23
23
24
#define PICO_CONNECT_TIMEOUT_MS 20000 /* !< Connection timeout (in ms) */
24
25
#define PICO_CONNECT_RETRY_DELAY_MS 200 /* !< delay time between retries. */
Original file line number Diff line number Diff line change 29
29
defined(ARDUINO_ADAFRUIT_QTPY_ESP32S3_N4R2) || \
30
30
defined(ARDUINO_RASPBERRY_PI_PICO) || \
31
31
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)
33
34
#include " Wippersnapper_FS.h"
34
35
// On-board external flash (QSPI or SPI) macros should already
35
36
// 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;
45
45
*/
46
46
#elif defined(ARDUINO_RASPBERRY_PI_PICO_2 ) || \
47
47
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 )
49
50
#include "adapters/offline/ws_offline_pico.h"
50
51
typedef ws_offline_pico ws_adapter_offline ;
51
52
#else
You can’t perform that action at this time.
0 commit comments