Okay this problem is bugging the heck out of me. I sat down today, started rewiring a breadboard of mine for testing. The only problem I have run into, is when I started to test the code, if one button is pressed (reads "HIGH") all of buttons follow. This is the setup I have that causes this
Now, if I change the design to the following, it works correctly, in the sense only the button I press registers as "HIGH"
What am I doing wrong here? To my knowledge these should be the same, but that doesn't seem to be the case. Although, in all fairness, this button wiring style has always confused me a little, I am used to a simple positive in one end, negative the other, and the switch is open by default. So maybe I am understanding these buttons incorrectly
Also, speaking to the code it's simple pin mode registration as "INPUT" and doing a serial print when the digital read returns "HIGH"