int inPin = 7; // choose the input pin (for a pushbutton)
The switch is connected to an input, not output. An input is a very high resistance to ground (10's of meg Ohms at least) so virtually no current flows into or out of an input.
int inPin = 7; // choose the input pin (for a pushbutton)
The switch is connected to an input, not output. An input is a very high resistance to ground (10's of meg Ohms at least) so virtually no current flows into or out of an input.