#define g_ledpin 13
#define y_ledpin 12
#define r_ledpin 11
void setup()
{//setup the digital pin as Outputs.
pinMode(r_ledpin, OUTPUT);
pinMode(y_ledpin, OUTPUT);
pinMode(g_ledpin, OUTPUT);
}
void loop()
{
digitalWrite(g_ledpin, HIGH);// Turn on the green LED.
delay(1000); // Wait for 1 second.
digitalWrite(g_ledpin, LOW);// Turn off the green LED.
digitalWrite(y_ledpin, HIGH);// Turn on the yellow LED.
delay(200); // Wait for 0.2 seconds.
digitalWrite(y_ledpin, LOW);// Turn off the yellow LED.
digitalWrite(r_ledpin, HIGH);// Turn on the red LED.
delay(1000); // Wait for 1 second.
digitalWrite(r_ledpin, LOW);// Turn off the red LED.
}