Just thinking aloud here....it's most likely much better to implement this in a library and have the event loop reset the counter?
@ltj started
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.
Just thinking aloud here....it's most likely much better to implement this in a library and have the event loop reset the counter?