Skip to content

Commit 7cdc677

Browse files
committed
Use a board with non-empty LED_BUILTIN
1 parent b5577bb commit 7cdc677

File tree

3 files changed

+1
-9
lines changed

3 files changed

+1
-9
lines changed

.github/workflows/compile_examples.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
platforms: |
3939
- name: esp8266:esp8266
4040
source-url: https://arduino.esp8266.com/stable/package_esp8266com_index.json
41-
- fqbn: esp32:esp32:esp32
41+
- fqbn: esp32:esp32:LOLIN_D32
4242
type: esp32
4343
platforms: |
4444
- name: esp32:esp32

examples/Blink/Blink.ino

-4
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,7 @@
1010

1111
#include <EmbAJAX.h>
1212

13-
#if defined(LED_BUILTIN)
1413
#define LEDPIN LED_BUILTIN
15-
#else
16-
#define LEDPIN 2
17-
#endif
1814

1915
// Set up web server, and register it with EmbAJAX. Note: EmbAJAXOutputDriverWebServerClass is a
2016
// convenience #define to allow using the same example code across platforms

examples/Blink_Ethernet/Blink_Ethernet.ino

-4
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,7 @@
2222
byte mac[] = { 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED };
2323
IPAddress ip(192, 168, 1, 177);
2424

25-
#if defined(LED_BUILTIN)
2625
#define LEDPIN LED_BUILTIN
27-
#else
28-
#define LEDPIN 2
29-
#endif
3026

3127
// Set up web server, and register it with EmbAJAX. Note: EmbAJAXOutputDriverWebServerClass is a
3228
// convenience #define to allow using the same example code across platforms

0 commit comments

Comments
 (0)