This is my attempt at trying to explain this topic for beginners:-
http://www.thebox.myzen.co.uk/Tutorial/Inputs.html
You speak of switching to GND - what else would you switch to?
Switching to 5V, like you do when you use a pull down resistor.
This is my attempt at trying to explain this topic for beginners:-
http://www.thebox.myzen.co.uk/Tutorial/Inputs.html
You speak of switching to GND - what else would you switch to?
Switching to 5V, like you do when you use a pull down resistor.