Setting up two or more switches using only a Arduino's digital pin and some resistor