Skip to content

Commit ebc2667

Browse files
committed
changed BUILTIN_LED to LED_BUILTIN
1 parent 7008a27 commit ebc2667

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

libraries/esp8266/examples/Blink/Blink.ino

+4-4
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,19 @@
66
The blue LED on the ESP-01 module is connected to GPIO1
77
(which is also the TXD pin; so we cannot use Serial.print() at the same time)
88
9-
Note that this sketch uses BUILTIN_LED to find the pin with the internal LED
9+
Note that this sketch uses LED_BUILTIN to find the pin with the internal LED
1010
*/
1111

1212
void setup() {
13-
pinMode(BUILTIN_LED, OUTPUT); // Initialize the BUILTIN_LED pin as an output
13+
pinMode(LED_BUILTIN, OUTPUT); // Initialize the LED_BUILTIN pin as an output
1414
}
1515

1616
// the loop function runs over and over again forever
1717
void loop() {
18-
digitalWrite(BUILTIN_LED, LOW); // Turn the LED on (Note that LOW is the voltage level
18+
digitalWrite(LED_BUILTIN, LOW); // Turn the LED on (Note that LOW is the voltage level
1919
// but actually the LED is on; this is because
2020
// it is acive low on the ESP-01)
2121
delay(1000); // Wait for a second
22-
digitalWrite(BUILTIN_LED, HIGH); // Turn the LED off by making the voltage HIGH
22+
digitalWrite(LED_BUILTIN, HIGH); // Turn the LED off by making the voltage HIGH
2323
delay(2000); // Wait for two seconds (to demonstrate the active low LED)
2424
}

0 commit comments

Comments
 (0)