You are reading a single comment by @user85862 and its replies. Click here to read the full conversation.
  • Corrected code. I used the same var for both setWatches.
    Same output.

    pinMode(A1, "input_pulldown");
    var a1=setWatch(function(e) {
        console.log('A1');
        console.log(e);
    },A1, { repeat: true, edge: 'both', debounce: 200 } );
    
    pinMode(A4, "input_pulldown");
    var a4=setWatch(function(e) {
        console.log('A4');
        console.log(e);
    },A4, { repeat: true, edge: 'both', debounce: 200 } );
    
About

Avatar for user85862 @user85862 started