With v1.95 on the BBC micro:bit the button watch only fires 1 time.
setWatch(function(e) { if (e.state) console.log("Released"); else console.log("Pressed"); }, BTN1, {repeat:true, debounce:20, edge:"both"});
Reverting back to v1.94 this works as expected on the micro:bit.
This code work OK on Puck.js with v1.95
@don 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.
With v1.95 on the BBC micro:bit the button watch only fires 1 time.
Reverting back to v1.94 this works as expected on the micro:bit.
This code work OK on Puck.js with v1.95