Yes you should use debounce, as it stops those multiple events caused by the physical contacts in the button bouncing together and apart. I tend to use 50 (milliseconds) as a reasonable start value.
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.
Hi, there's quite a bit of documentation on setWatch in the Espruino reference: http://www.espruino.com/Reference#l__global_setWatch
Yes you should use debounce, as it stops those multiple events caused by the physical contacts in the button bouncing together and apart. I tend to use 50 (milliseconds) as a reasonable start value.