Traffic Light with 3 LEDs — ESP32 simulation

A simple traffic light controller using three LEDs and an ESP32.

An interactive ESP32 circuit simulation you can run free in your browser on Velxio, by edelarosagon.

Components

Sketch code

// Arduino Blink Example
void setup() {
  pinMode(LED_BUILTIN, OUTPUT);
}

void loop() {
  digitalWrite(LED_BUILTIN, HIGH);
  delay(1000);
  digitalWrite(LED_BUILTIN, LOW);
  delay(1000);
}

More projects by edelarosagon