You are reading a single comment by @user52526 and its replies. Click here to read the full conversation.
  • 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 first digitalRead returns 0, as before you call pinMode, 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?

About

Avatar for user52526 @user52526 started