File tree 1 file changed +4
-4
lines changed
libraries/esp8266/examples/Blink
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 6
6
The blue LED on the ESP-01 module is connected to GPIO1
7
7
(which is also the TXD pin; so we cannot use Serial.print() at the same time)
8
8
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
10
10
*/
11
11
12
12
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
14
14
}
15
15
16
16
// the loop function runs over and over again forever
17
17
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
19
19
// but actually the LED is on; this is because
20
20
// it is acive low on the ESP-01)
21
21
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
23
23
delay (2000 ); // Wait for two seconds (to demonstrate the active low LED)
24
24
}
You can’t perform that action at this time.
0 commit comments