I have a switch setup with a pull-up resistor. With the switch open I get a "1" or HIGH output and with the switch closed I get a "0" or LOW output. I understand why I am getting the "1" with it open (because it is connected to 5v) but I don't understand why I get the "0" when it's closed. Aren't 5v's still passing through the switch?