the avr supports internal pullups so you dont have to use extra pins
set your pinMode to input, and then digital write high to the same pin in the setup function, you now have a input pin that is pulled high by the chip
the avr supports internal pullups so you dont have to use extra pins
set your pinMode to input, and then digital write high to the same pin in the setup function, you now have a input pin that is pulled high by the chip