Do I need a pull down resistor or something for the digitalRead(pin)? I'm getting unexpected results with this... I'm trying to read from pin B0 and B1, when I set A2 HIGH, sometimes the reading on B0 is actually effected, even when the two aren't connected... at first I thought it was the breadboard, but I tried on another and it's still not behaving as expected...
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.
Do I need a pull down resistor or something for the digitalRead(pin)? I'm getting unexpected results with this... I'm trying to read from pin B0 and B1, when I set A2 HIGH, sometimes the reading on B0 is actually effected, even when the two aren't connected... at first I thought it was the breadboard, but I tried on another and it's still not behaving as expected...
Btw, digitalWrite is working as expected