You are reading a single comment by @Gordon and its replies.
Click here to read the full conversation.
-
I have to date firmware and A4 is connected to a diode. I'm using this board: http://www.espruino.com/EspruinoBoard
I have to date firmware and A4 is connected to a diode. I'm using this board: http://www.espruino.com/EspruinoBoard
So the issue is that the last
digitalRead
should return 1? As discussed in another thread on here very recently, it's not a massive surprise that the firstdigitalRead
returns 0, as before you callpinMode
,digitalRead
will make sure the pin is an input, which would make the voltage on it more or less random.Is A4 connected to anything? Which board are you using, and do you have up to date firmware?