So I've made LEDs blink. Even used the analog write to make them fade. I want to do switches. I understand about push / pull up and the role of the 10k resistor. I know that you can turn internal resistors on.
But I want to check wiring as I'm paranoid about killing the Arduino.
I want a simple press switch that turns a light on. I have to set a pin - say 12 as an input. I set it as high at the start and that turns on the internal resistors. What wiring do I need to do?
Please keep it simple. Thanks