Are those \n part of your code, or just a copy/paste issue?
One thing that might be worth trying is debounce:20 just in case something odd is happening caused by the button contacts bouncing and queuing up lots of changes?
Could you also add something like LED.set() at the beginning of the setWatch and LED.reset() at the end? The LED should flicker on if everything has worked, but if for whatever reason there was an error executing to the end of the code then the LED will stay on
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.
Are those
\n
part of your code, or just a copy/paste issue?One thing that might be worth trying is
debounce:20
just in case something odd is happening caused by the button contacts bouncing and queuing up lots of changes?Could you also add something like
LED.set()
at the beginning of thesetWatch
andLED.reset()
at the end? The LED should flicker on if everything has worked, but if for whatever reason there was an error executing to the end of the code then the LED will stay on