As @asez73 says, Espruino handles sleep automatically - you just need to tell it to enable it with setDeepSleep(1), because when enabled the accuracy of the timer drops to around 1/32,000 of a sec when it's waking from sleep (that's the freq of the low frequency oscillator).
I also need to update the power consumption page - the rev 1v4 board (which is in all the distributors now) has much better power consumption (0.03mA) because of a different voltage regulator.
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.
As @asez73 says, Espruino handles sleep automatically - you just need to tell it to enable it with
setDeepSleep(1)
, because when enabled the accuracy of the timer drops to around 1/32,000 of a sec when it's waking from sleep (that's the freq of the low frequency oscillator).I also need to update the power consumption page - the rev 1v4 board (which is in all the distributors now) has much better power consumption (0.03mA) because of a different voltage regulator.