Skip to content

Commit dabc9b0

Browse files
committed
Examples: fix build for Arduino NANO ESP32
1 parent c4c6505 commit dabc9b0

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

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)