int led = 6;
void setup() { // runs the code 1 time
pinMode(led, OUTPUT); // set up the pin so it can be used
digitalWrite(led, HIGH); // turns the light on
delay(5000); // keep light on 2 seconds
digitalWrite(led, LOW); // turns the light off
delay(5000); // keeps the light off for 2 secdons
digitalWrite(led, HIGH); // turns the light on
delay(4000); // keep light on 2 seconds
digitalWrite(led, LOW); // turns the light off
delay(4000); // keeps the light off for 2 secdons
digitalWrite(led, HIGH); // turns the light on
delay(3000); // keep light on 2 seconds
digitalWrite(led, LOW); // turns the light off
delay(3000); // keeps the light off for 2 secdons
digitalWrite(led, HIGH); // turns the light on
delay(2000); // keep light on 2 seconds
digitalWrite(led, LOW); // turns the light off
delay(2000); // keeps the light off for 2 secdons
digitalWrite(led, HIGH); // turns the light on
delay(1000); // keep light on 2 seconds
digitalWrite(led, LOW); // turns the light off
delay(1000); // keeps the light off for 2 secdons
digitalWrite(led, HIGH); // turns the light on
delay(1500); // keep light on 2 seconds
}
void loop() { //repeats the code infantate times
digitalWrite(led, HIGH); // turns the light on
delay(500); // stays on for 0.5 seconds
digitalWrite(led, LOW); // turns off
delay(500); // stays off for 0.5 seconds
}