-
Notifications
You must be signed in to change notification settings - Fork 13.3k
ESP8266 Blink example for the blue LED on the ESP-01 module #461
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
||
void setup() { | ||
pinMode(ledPin, OUTPUT); // Initialize the ledPin as an output | ||
ESP.wdtDisable(); // Disable the watchdog timer built into the ESP8266 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is not necessary — works fine with WDT enabled.
Changed as you advised, thanks. |
Another thing is, all Arduino boards have static const uint8_t BUILTIN_LED = 1; Other variants (NodeMCU, MOD-WIFI, HUZZAH) also have this defined, so the sketch can use this constant instead of fixed pin number, and this will work on all boards. I really wonder why the standard Blink sketch doesn't do this... |
Using BUILTIN_LED now. Contributing to this project is fun because one learns so many things. I think the project can profit much from having great examples coming with it. |
ESP8266 Blink example for the blue LED on the ESP-01 module
My esp12e doesn't seem to listen when I digitalWrite high/low to pin BUILTIN_LED, nothing happens. I'll investigate later. Great comments by the way, didn't know the led is supposed to activate on low. |
Yes... I seem to have the same issue. Strange thing is that the
|
No description provided.