Actually setDeepSleep doesn't sleep immediately, it just sets a flag. You only actually need to call it once in the whole program, so any subsequent calls don't do anything.
In other words, it is enabling / disabling deep sleep - and deep sleep is entered when enabled and 'the work/event queue' became empty. Very interesting.
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
In other words, it is enabling / disabling deep sleep - and deep sleep is entered when enabled and 'the work/event queue' became empty. Very interesting.
#sleep #deepsleep