Skip to content

Commit b0640c6

Browse files
committed
Add support to Raspberry Pi Pico W
1 parent 4419df1 commit b0640c6

File tree

3 files changed

+19
-0
lines changed

3 files changed

+19
-0
lines changed

.github/workflows/compile-examples.yml

+9
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,9 @@ jobs:
9898
- fqbn: arduino:mbed_edge:edge_control
9999
platform-name: arduino:mbed_edge
100100
artifact-name-suffix: arduino-mbed_edge-edge_control
101+
- fqbn: "rp2040:rp2040:rpipicow"
102+
platform-name: rp2040:rp2040
103+
artifact-name-suffix: rp2040-rp2040-rp2040
101104

102105
# Make board type-specific customizations to the matrix jobs
103106
include:
@@ -142,6 +145,12 @@ jobs:
142145
# Install ESP32 platform via Boards Manager
143146
- name: esp32:esp32
144147
source-url: https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json
148+
- board:
149+
platform-name: rp2040:rp2040
150+
platforms: |
151+
# Install rp2040 platform via Boards Manager
152+
- name: rp2040:rp2040
153+
source-url: https://github.com/earlephilhower/arduino-pico/releases/download/global/package_rp2040_index.json
145154
146155
steps:
147156
- uses: actions/checkout@v4

src/ConnectionHandlerDefinitions.h

+7
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,13 @@
136136
#define NETWORK_HARDWARE_ERROR
137137
#endif
138138

139+
#if defined(ARDUINO_RASPBERRY_PI_PICO_W)
140+
#define BOARD_HAS_WIFI
141+
#define NETWORK_HARDWARE_ERROR WL_NO_SHIELD
142+
#define NETWORK_IDLE_STATUS WL_IDLE_STATUS
143+
#define NETWORK_CONNECTED WL_CONNECTED
144+
#endif
145+
139146
/******************************************************************************
140147
TYPEDEFS
141148
******************************************************************************/

src/WiFiConnectionHandler.h

+3
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,9 @@
4646
#include <WiFiUdp.h>
4747
#elif defined(ARDUINO_UNOR4_WIFI)
4848
#include <WiFiS3.h>
49+
#elif defined(ARDUINO_RASPBERRY_PI_PICO_W)
50+
#include <WiFi.h>
51+
#include <WiFiUdp.h>
4952
#endif
5053

5154
#ifndef BOARD_HAS_WIFI

0 commit comments

Comments
 (0)