Plenty of info around on how to connect a switch and pull-up resistor. If the explanation here :o isn't clear enough then you should do youself some good and check it out.
Plenty of info around on how to connect a switch and pull-up resistor. If the explanation here :o isn't clear enough then you should do youself some good and check it out.