You might want to start by looking at the Examples/Digital/Button sketch? That shows how to use a push button switch to light up an led.
You might want to start by looking at the Examples/Digital/Button sketch? That shows how to use a push button switch to light up an led.