I am currently playing around with circuit #5 from the starter kit:
I am a little confused with how push buttons work. From my understanding, when the push button is not pressed, the contacts are open as seen in this image:
Thus, for the starter kit circuit, when the button is not pressed, 5V does not flow through the push button so if I read off the push button it should read 0V. And when the button is pressed, the contacts close and thus the push button reads 5V.
However, in the code for the push button it says: " // Remember that if the button is being pressed, it will be // connected to GND. If the button is not being pressed, // the pullup resistor will connect it to 5 Volts. "
This contradicts to what I said earlier which is why I am confused. Does anyone know what the issue is? Is it because the push button is normally closed.