diff --git a/.github/workflows/compile-examples.yml b/.github/workflows/compile-examples.yml index c0c5b9a..808258e 100644 --- a/.github/workflows/compile-examples.yml +++ b/.github/workflows/compile-examples.yml @@ -101,6 +101,9 @@ jobs: - fqbn: arduino:mbed_edge:edge_control platform-name: arduino:mbed_edge artifact-name-suffix: arduino-mbed_edge-edge_control + - fqbn: "rp2040:rp2040:rpipicow" + platform-name: rp2040:rp2040 + artifact-name-suffix: rp2040-rp2040-rpipicow # Make board type-specific customizations to the matrix jobs include: @@ -181,6 +184,14 @@ jobs: source-url: https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json sketch-paths: | - examples/ConnectionHandlerDemo-Notecard + - board: + platform-name: rp2040:rp2040 + platforms: | + # Install rp2040 platform via Boards Manager + - name: rp2040:rp2040 + source-url: https://github.com/earlephilhower/arduino-pico/releases/download/global/package_rp2040_index.json + sketch-paths: | + - examples/ConnectionHandlerDemo-Notecard steps: - uses: actions/checkout@v4 diff --git a/src/ConnectionHandlerDefinitions.h b/src/ConnectionHandlerDefinitions.h index 96bcd65..4f29559 100644 --- a/src/ConnectionHandlerDefinitions.h +++ b/src/ConnectionHandlerDefinitions.h @@ -144,6 +144,13 @@ #define NETWORK_HARDWARE_ERROR #endif +#if defined(ARDUINO_RASPBERRY_PI_PICO_W) + #define BOARD_HAS_WIFI + #define NETWORK_HARDWARE_ERROR WL_NO_SHIELD + #define NETWORK_IDLE_STATUS WL_IDLE_STATUS + #define NETWORK_CONNECTED WL_CONNECTED +#endif + #endif // BOARD_HAS_NOTECARD /****************************************************************************** diff --git a/src/WiFiConnectionHandler.h b/src/WiFiConnectionHandler.h index e5e2e25..2ee674a 100644 --- a/src/WiFiConnectionHandler.h +++ b/src/WiFiConnectionHandler.h @@ -46,6 +46,9 @@ #include #elif defined(ARDUINO_UNOR4_WIFI) #include +#elif defined(ARDUINO_RASPBERRY_PI_PICO_W) + #include + #include #endif #ifndef BOARD_HAS_WIFI