#define R 13
#define G 10
#define Y 9
#define B 2
void setup() {
pinMode(R, OUTPUT);
pinMode(Y, OUTPUT);
pinMode(G, OUTPUT);
pinMode(B, OUTPUT);
}
void loop() {
// Turn on the red LED and the buzzer, turn off the yellow and green LEDs
digitalWrite(R, HIGH);
digitalWrite(Y, LOW);
digitalWrite(G, LOW);
digitalWrite(B, HIGH);
delay(5000);
// Keep the red LED on, turn on the yellow LED, turn off the green LED, keep the buzzer on
digitalWrite(R, HIGH);
digitalWrite(Y, HIGH);
digitalWrite(G, LOW);
digitalWrite(B, LOW);
delay(2000);
// Turn off the red and yellow LEDs, turn on the green LED, turn off the buzzer
digitalWrite(R, LOW);
digitalWrite(Y, LOW);
digitalWrite(G, HIGH);
digitalWrite(B, LOW);
delay(2000);
// Turn off the red LED, turn on the yellow and green LEDs, turn off the buzzer
digitalWrite(R, LOW);
digitalWrite(Y, HIGH);
digitalWrite(G, HIGH);
digitalWrite(B, LOW);
delay(1000);
}