Avatar for user85862

user85862

Member since Feb 2018 • Last active Jul 2018
  • 1 conversations
  • 10 comments

Most recent activity

  • in Interfacing
    Avatar for user85862

    Flashed 1V96, same result. Even on another EspruinoWifi.
    I'm a bit confused.

    Sacha

  • in Interfacing
    Avatar for user85862

    It triggers "false" on the other pin. This is the right value. But i do not wan't this information, because that is the current unchanged state.

    There is a workaround. I will remember the states and ignore the same value.

    Sacha

  • in Interfacing
    Avatar for user85862

    It happen each time. Very easy setup.

    Connected the PIN 3.3v to the butten or switch and then to A1 (Btn1) and A4 (Btn2).
    I think it happens on other pins too.

    Sacha

  • in Interfacing
    Avatar for user85862

    Still triggers both Watches.

  • in Interfacing
    Avatar for user85862

    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 } );
    
  • in Interfacing
    Avatar for user85862

    I used 1V95

  • in Interfacing
    Avatar for user85862

    Hello Gordon

    On the EspruinoWifi. Two buttons connected:
    3.3v -> A1
    3.3v -> A4

    Code:

    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 a1=setWatch(function(e) {
        console.log('A4');
        console.log(e);
    },A4, { repeat: true, edge: 'both', debounce: 200 } );
    

    When i push the button on A4 or A1 i also get a callback on the other watch.

    Output, pressed button connected on A4:

    A1
    { "state": false, "lastTime": 946685544.60812091827, "time": 946685548.80402851104 }
    A4
    { "state": true, "lastTime": 946685544.78433227539, "time": 946685548.80407905578 }
    

    I expected only receive a setWatch callback from A4.

    Thanks

    Sacha

  • Avatar for user85862

    Hi Gordon
    Yep, using 1v95. Works perfect for me.
    Regards
    Sacha

  • Avatar for user85862

    I have successfull connected a microsd with fat32. Sometime i have wifi or sd errors.
    Fixed that by waiting a few seconds after Oninit with setTimeout(....);

    Best regards

    Sacha

Actions