maybe setTimeout is better fit? setInterval is supposed to be used when the method passed to it is called repeatedly in regular intervals, does not make much sense with value of 0 or when changing it all the time.
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.
maybe setTimeout is better fit? setInterval is supposed to be used when the method passed to it is called repeatedly in regular intervals, does not make much sense with value of 0 or when changing it all the time.