So, I suspect the original problem was that the input signal was floating.
@maze1980 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.
So, I suspect the original problem was that the input signal was floating.
pulldown) resistor. (done in #10 with an internal resistor)