You are reading a single comment by @Gordon and its replies. Click here to read the full conversation.
  • It's very odd about the latency issues. Try just:

    setWatch(function(e) {
      digitalPulse(e.state?LED1:LED2,1,100);
    }, BTN, {edge:"both",repeat:true,debounce:50});
    

    and you should see the LED lights almost instantly (after 50ms since that is the debounce time used here). There's no way it should be taking seconds - sounds like there's something else going on in your code there.

About

Avatar for Gordon @Gordon started