const int redLED = 32;
const int yellowLED = 25;
const int greenLED = 12;
void setup() {
// Initialize the digital pin as an output
pinMode(redLED, OUTPUT);
pinMode(yellowLED, OUTPUT);
pinMode(greenLED, OUTPUT);
}
void loop() {
// Turn on the red LED and turn off the others
digitalWrite(redLED, HIGH);
digitalWrite(yellowLED, LOW);
digitalWrite(greenLED, LOW);
delay(5000); // Red light for 5 seconds
// Turn on the yellow LED and turn off the others
digitalWrite(redLED, LOW);
digitalWrite(yellowLED, HIGH);
digitalWrite(greenLED, LOW);
delay(2000); // Yellow light for 2 seconds
// Turn on the green LED and turn off the others
digitalWrite(redLED, LOW);
digitalWrite(yellowLED, LOW);
digitalWrite(greenLED, HIGH);
delay(5000); // Green light for 5 seconds
// Repeat the cycle
}