there should be a reference to a function e.g.
setWatch(myhandler, BTN4, {edge:"falling", debounce:50, repeat:true});
I'm a the moment a bit unsure whether an arrow function can deliver this. Maybe try an anonymous function().
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.
there should be a reference to a function e.g.
setWatch(myhandler, BTN4, {edge:"falling", debounce:50, repeat:true});
I'm a the moment a bit unsure whether an arrow function can deliver this. Maybe try an anonymous function().