Yes that's explained here. The reference is there and it depends on the particular board you are using: Espruino's do it, others might not...
Works like a charm on an Espruino 1.4: a pair of batteries lasts for much more than a month (2 years?) !
You can get a feed back each time your board is awaken by using setSleepIndicator. So as long as it doesn't sleep, the led will stay illuminated.
In fact that's one of the main benefits of Espruino's interpreter to automatically have the board go to sleep once everything pending has been done and wake up if an interrupt / clock's alarm happens.
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.
Yes that's explained here. The reference is there and it depends on the particular board you are using: Espruino's do it, others might not...
Works like a charm on an Espruino 1.4: a pair of batteries lasts for much more than a month (2 years?) !
You can get a feed back each time your board is awaken by using setSleepIndicator. So as long as it doesn't sleep, the led will stay illuminated.
In fact that's one of the main benefits of Espruino's interpreter to automatically have the board go to sleep once everything pending has been done and wake up if an interrupt / clock's alarm happens.