In this experiment you will connect a button and get the LED to light up when it's pressed.
Wire up the experiment as shown in fig.1.
In the Arduino IDE, create a new sketch and enter the following code:
int led = 13;
void setup() {
pinMode(led, OUTPUT);
}
void loop() {
digitalWrite(led, HIGH);
}