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);
};
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
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.