switch with pull down resistor

study digital input and digital output