From ebc2667d1546b700a89089f294c7b9b9b18e32fb Mon Sep 17 00:00:00 2001 From: Alex Date: Tue, 2 Feb 2016 16:00:56 +0100 Subject: [PATCH] changed BUILTIN_LED to LED_BUILTIN --- libraries/esp8266/examples/Blink/Blink.ino | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/libraries/esp8266/examples/Blink/Blink.ino b/libraries/esp8266/examples/Blink/Blink.ino index 578f36886..6391632a5 100644 --- a/libraries/esp8266/examples/Blink/Blink.ino +++ b/libraries/esp8266/examples/Blink/Blink.ino @@ -6,19 +6,19 @@ The blue LED on the ESP-01 module is connected to GPIO1 (which is also the TXD pin; so we cannot use Serial.print() at the same time) - Note that this sketch uses BUILTIN_LED to find the pin with the internal LED + Note that this sketch uses LED_BUILTIN to find the pin with the internal LED */ void setup() { - pinMode(BUILTIN_LED, OUTPUT); // Initialize the BUILTIN_LED pin as an output + pinMode(LED_BUILTIN, OUTPUT); // Initialize the LED_BUILTIN pin as an output } // the loop function runs over and over again forever void loop() { - digitalWrite(BUILTIN_LED, LOW); // Turn the LED on (Note that LOW is the voltage level + digitalWrite(LED_BUILTIN, LOW); // Turn the LED on (Note that LOW is the voltage level // but actually the LED is on; this is because // it is acive low on the ESP-01) delay(1000); // Wait for a second - digitalWrite(BUILTIN_LED, HIGH); // Turn the LED off by making the voltage HIGH + digitalWrite(LED_BUILTIN, HIGH); // Turn the LED off by making the voltage HIGH delay(2000); // Wait for two seconds (to demonstrate the active low LED) }