Skip to content

Commit 1e363b7

Browse files
committed
Wrapped BlinkRGB in #ifdef BOARD_HAS_NEOPIXEL
1 parent 51ce37d commit 1e363b7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Diff for: libraries/ESP32/examples/GPIO/BlinkRGB/BlinkRGB.ino

+3-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ void setup() {
2020
}
2121

2222
// the loop function runs over and over again forever
23-
void loop() {
23+
void loop() {
24+
#ifdef BOARD_HAS_NEOPIXEL
2425
digitalWrite(LED_BUILTIN, HIGH); // Turn the RGB LED white
2526
delay(1000);
2627
log_w("LED LOW");
@@ -35,4 +36,5 @@ void loop() {
3536
delay(1000);
3637
RGBLedWrite(LED_BUILTIN,0,0,0); // Off / black
3738
delay(1000);
39+
#endif
3840
}

0 commit comments

Comments
 (0)