I am sure v1.52 is fine. Try,
setWatch('console.log(c=c+1||0)',BTN1,{repeat:true, edge:"falling", debounce:10});
it works perfectly. Or,
setWatch('console.log(c=c+1||0)',BTN1,{repeat:true, edge:"both", debounce:10});
too.
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.
I am sure v1.52 is fine. Try,
setWatch('console.log(c=c+1||0)',BTN1,{repeat:true, edge:"falling", debounce:10});
it works perfectly. Or,
setWatch('console.log(c=c+1||0)',BTN1,{repeat:true, edge:"both", debounce:10});
too.