Skip to content

Commit dc50659

Browse files
authored
Merge pull request #372 from pennam/nano_nora
Nano ESP32: enable CI and fix examples build
2 parents a6a7952 + dabc9b0 commit dc50659

File tree

4 files changed

+15
-3
lines changed

4 files changed

+15
-3
lines changed

.github/workflows/compile-examples.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,8 @@ jobs:
6868
type: renesas_portenta
6969
- fqbn: arduino:renesas_uno:unor4wifi
7070
type: renesas_uno
71+
- fqbn: arduino:esp32:nano_nora
72+
type: arduino_esp32
7173

7274

7375
# make board type-specific customizations to the matrix jobs
@@ -200,6 +202,16 @@ jobs:
200202
platforms: |
201203
# Install renesas_uno platform via Boards Manager
202204
- name: arduino:renesas_uno
205+
# Nano ESP32
206+
- board:
207+
type: arduino_esp32
208+
platforms: |
209+
# Install arduino_esp32 platform via Boards Manager
210+
- name: arduino:esp32
211+
libraries: |
212+
- name: Arduino_ESP32_OTA
213+
sketch-paths: |
214+
- examples/ArduinoIoTCloud-DeferredOTA
203215
# ESP8266 boards
204216
- board:
205217
type: esp8266

examples/ArduinoIoTCloud-Basic/ArduinoIoTCloud-Basic.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
#include "arduino_secrets.h"
1818
#include "thingProperties.h"
1919

20-
#if !defined(LED_BUILTIN)
20+
#if !defined(LED_BUILTIN) && !defined(ARDUINO_NANO_ESP32)
2121
static int const LED_BUILTIN = 2;
2222
#endif
2323

examples/ArduinoIoTCloud-DeferredOTA/ArduinoIoTCloud-DeferredOTA.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
#include "arduino_secrets.h"
2020
#include "thingProperties.h"
2121

22-
#if defined(ESP32)
22+
#if !defined(LED_BUILTIN) && !defined(ARDUINO_NANO_ESP32)
2323
static int const LED_BUILTIN = 2;
2424
#endif
2525

examples/ArduinoIoTCloud-Schedule/ArduinoIoTCloud-Schedule.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
#include "arduino_secrets.h"
1010
#include "thingProperties.h"
1111

12-
#if defined(ESP32)
12+
#if !defined(LED_BUILTIN) && !defined(ARDUINO_NANO_ESP32)
1313
static int const LED_BUILTIN = 2;
1414
#endif
1515

0 commit comments

Comments
 (0)