int animationSpeed;
int animationSpeed2;
int animationSpeed3;
void setup() {
// put your setup code here, to run once:
pinMode(13, OUTPUT);
pinMode(12, OUTPUT);
pinMode(11, OUTPUT);
}
void loop() {
// put your main code here, to run repeatedly:
animationSpeed = 4000;
animationSpeed2 = 4000;
animationSpeed3 = 4000;
digitalWrite(13, HIGH); // turn the red led ON
delay(animationSpeed);
digitalWrite(13, LOW); // turn the red led OFF
delay(1000);
digitalWrite(12, HIGH); // trun the yellow led ON
delay(animationSpeed2);
digitalWrite(12, LOW); // turn the yellow led OFF
delay(1000);
digitalWrite(11, HIGH);// turn the green led ON
delay(animationSpeed3);
digitalWrite(11, LOW); // trun the gree led OFF
delay(1000);
}