Sorry, just getting back to this. The code below when pasted in the IDE returns 'false' normally but then does detect a button press and issue 'true'.
Repeats as long as I hold the button down.
Interesting as the button still does nothing else with the hack I have in place.
And the watch can still relock with the button pressed.
Haven't tried the other method yet, but my hack seems to work OK provided I'm in the clock (
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.
Sorry, just getting back to this. The code below when pasted in the IDE returns 'false' normally but then does detect a button press and issue 'true'.
Repeats as long as I hold the button down.
Interesting as the button still does nothing else with the hack I have in place.
And the watch can still relock with the button pressed.
Haven't tried the other method yet, but my hack seems to work OK provided I'm in the clock (