system
1
I have 4 inputs, hooked up as so
(to 6nd)resistor(to 5V)switch(to pin 7)
(to 6nd)resistor(to 5V)switch(to pin 6)
(to 6nd)resistor(to 5V)switch(to pin 5)
(to 6nd)resistor(to 5V)switch(to pin 4)
(to 6nd)resistor(to 5V)switch(to pin 3)
Is this right?
MarkT
2
No because that is 5 inputs!
To be more useful: Your setup looks wrong - you seem to have put resistors between 5V and GND, which cannot do anything useful.
Just connect the switches between GND and the relevant pin, and enable the internal pull-up resistors on those pins:
digitalWrite (pin, HIGH) ;
pinMode (pin, INPUT) ;