• Wow, thanks for letting me know about this.

    I'm just looking into it - it seems like clearWatch in 2v09 started clearing the pin pullup state. You can add the following code to your program to fix this, but I'll get to work on a fix and pushing a version 2v10 out now.

    _clearWatch = global.clearWatch;
    global.clearWatch = function(w) {
      if (w===undefined) return _clearWatch();
      var pin = global["\xff"].watches[w].pin;
      var s = getPinMode(pin);
      _clearWatch(w);
      pinMode(pin,s);
    };
    
About

Avatar for Gordon @Gordon started