const int R=4;
const int G=5;
const int Y=15;
void setup() {
// put your setup code here, to run once:
Serial.begin(115200);
Serial.println("Hello, ESP32!");
}
void loop() {
// put your main code here, to run repeatedly:
digitalWrite(R, HIGH);
digitalWrite(G, LOW);
digitalWrite(Y, LOW);
Serial.println("Red");
delay(10000);
//else{
digitalWrite(R, LOW);
digitalWrite(G, HIGH);
digitalWrite(Y, LOW);
Serial.println("Green");
delay(10000);
digitalWrite(R, LOW);
digitalWrite(G, LOW);
digitalWrite(Y, HIGH);
Serial.println("Yellow");
delay(10000);
//}
// this speeds up the simulation
}