You are reading a single comment by @cmo and its replies. Click here to read the full conversation.
  • Thank you all.

    I can confirm this now works using the latest Travis build for at least these pins: D0, D12, D13, D14, D15, using this code:

    var count=0;
    function button_down() {
      print('button',count++);
    }
    setWatch(button_down,D0, {repeat:true, edge:"rising", debounce:50});
    

    One question, when I do this I get "New interpreter error: FIFO_FULL". It still works but should I be concerned?

     _____                 _
    |   __|___ ___ ___ _ _|_|___ ___
    |   __|_ -| . |  _| | | |   | . |
    |_____|___|  _|_| |___|_|_|_|___|
              |_| http://espruino.com
     1v94 Copyright 2017 G.Williams
    Espruino is Open Source. Our work is supported
    only by sales of official boards and donations:
    http://espruino.com/Donate
    >
    =undefined
    New interpreter error: FIFO_FULL
    button 0
    button 1
    button 2
    button 3
    button 4
    button 5
    
About

Avatar for cmo @cmo started