Nodemcu v3 esp8266 module problem #6330
Replies: 1 comment
-
Posted at 2019-12-12 by @MaBecker Well, the ESP8266 has no LED1 defined. Erase that code at the right side, write your own and have fun ;-) Posted at 2019-12-13 by maze1980 Just add
To stop the blinking call Posted at 2019-12-13 by @allObjects Caution:
To stop the blinking you code:
This blinker thing has though an issue: the LED / Pin may stay on or off depending when it get's stopped. Therefore, you may think about this:
( The next issue with this blinker thing is that it turns the LED on for the first time after the first interval has passed. Therefore you also enhance the setup with:
('Some' will now speak up and say: the first blink will be shorter than the others... yep. If you 'turn it around' and turn LED on before setting up the interval for toggling, the first blink will be longer than the others... But both matter only when interval time is gets close to the time to execute code for either turning the LED on and setting up the interval, respective. Either way, if this this the case, the LED still blinks but not for the human eye.) There is more to this blink thing,... (may be in another post or conversation). PS: I used the fat arrow function to tidy the code. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2019-12-12 by user106666
Hi What to do?
Attachments:
Beta Was this translation helpful? Give feedback.
All reactions