Unfortunately doing stuff during the delay(1000) is actually pretty difficult, as you definitely can't run JavaScript (the execution stack will already be taken up with what you're currently executing). That's the issue really - a delay of 1ms is fine, but people **will ** use delay(1000) and then the whole experience of using Espruino will really degrade.
By when there are no timers it means PWM. I'll update the docs on that along with a Power consumption page. The issue is that when it enters deep sleep, all the clocks stop (except the real time clock) so anything that depends on that clock (SPI,I2C,timers,usart,etc) stop working.
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.
Unfortunately doing stuff during the
delay(1000)
is actually pretty difficult, as you definitely can't run JavaScript (the execution stack will already be taken up with what you're currently executing). That's the issue really - a delay of 1ms is fine, but people **will ** use delay(1000) and then the whole experience of using Espruino will really degrade.By when there are no timers it means PWM. I'll update the docs on that along with a Power consumption page. The issue is that when it enters deep sleep, all the clocks stop (except the real time clock) so anything that depends on that clock (SPI,I2C,timers,usart,etc) stop working.