You are reading a single comment by @Gordon and its replies. Click here to read the full conversation.
  • Hi bret,

    Yes, this is because there's no switch debouncing built in to Espruino. There's an issue on GitHub open for this as it'd be nice if you could just say:

    setWatch(swap_on_down, BTN1, {repeat:true,edge:"rising", debounce:1/*ms*/}); 
    

    It's been relatively low priority so far I'm afraid though!

About

Avatar for Gordon @Gordon started