Ok, great! I guess the other solution is for me to add a setting in Espruino that allows you to completely disable sleep.
I have made a few changes now which I hope will make this better in the 'cutting edge' build, but somehow I'm still seeing it happen (but just extremely rarely now).
But yes, if you need a reliable pulse sent out, I'd definitely say use analogWrite (without forceSoft) so you're then using a hardware timer. It'll be completely rock solid then.
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.
Ok, great! I guess the other solution is for me to add a setting in Espruino that allows you to completely disable sleep.
I have made a few changes now which I hope will make this better in the 'cutting edge' build, but somehow I'm still seeing it happen (but just extremely rarely now).
But yes, if you need a reliable pulse sent out, I'd definitely say use
analogWrite
(withoutforceSoft
) so you're then using a hardware timer. It'll be completely rock solid then.