Deep sleep happening too quickly?
Posted: Tue May 03, 2016 5:02 pm
I've got a part of my sketch where I use the adc to read my battery voltage, if its too low it should flash a neopixel 4 times then enter deep sleep forever.
Currently the neopixel turns on once and then stays on and the esp goes into sleep mode. It doesn't seen to do all of the steps. I tried enclosing the ESP.deepSleep(0); in an if statement just to see if that would have it run the block of neopixel commands first, then the sleep. (with no luck)
http://dpaste.com/3SZ8SAH
Any ideas whats going on, or how I can stop it?
Sol
Currently the neopixel turns on once and then stays on and the esp goes into sleep mode. It doesn't seen to do all of the steps. I tried enclosing the ESP.deepSleep(0); in an if statement just to see if that would have it run the block of neopixel commands first, then the sleep. (with no luck)
http://dpaste.com/3SZ8SAH
Any ideas whats going on, or how I can stop it?
Sol