// Declare a variable "led" and assign it to pin 8
int led = 8;
void setup()
{
//Set the led pin as an output
pinMode(led, OUTPUT);
}
// The LED will be on for a sec, & off for a sec repeatedly
void loop()
{
// Set the pin to a high state (Apply 5V to pin 8)
digitalWrite(led, HIGH);
//Wait for a second
delay(1000);
// Set the pin to a low state (Apply 0V to pin 8)
digitalWrite(led, LOW);
//Wait for a second
delay(1000);
}