is it correct and intended that setTimeout prevents the screen to turn off
No, it's not intended at all, and I'm pretty convinced that isn't the case :) Are you calling g.flip()? I know that can prevent the screen from turning off...
If you want to stop the function from being called, pass the number that was returned by setTimeout into the clearInterval function.
Thanks! Both will work I believe as they are the same function, but that is still confusing. I'll change the docs
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.
No, it's not intended at all, and I'm pretty convinced that isn't the case :) Are you calling
g.flip()
? I know that can prevent the screen from turning off...Thanks! Both will work I believe as they are the same function, but that is still confusing. I'll change the docs