Hm, I wasn't, that's probably (part of) my problem. I'll try setting pinMode(pin,'input-pullup') and see if that improves things.
@DrAzzy started
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.
Hm, I wasn't, that's probably (part of) my problem. I'll try setting pinMode(pin,'input-pullup') and see if that improves things.