/* ESP32 HTTP IoT Server Example for Wokwi.com
https://wokwi.com/projects/320964045035274834
To test, you need the Wokwi IoT Gateway, as explained here:
https://docs.wokwi.com/guides/esp32-wifi#the-private-gateway
Then start the simulation, and open http://localhost:9080
in another browser tab.
Note that the IoT Gateway requires a Wokwi Club subscription.
To purchase a Wokwi Club subscription, go to https://wokwi.com/club
*/
#define red 4
#define yellow 2
#define green 0
void setup()
{
pinMode(red, OUTPUT);
pinMode(yellow, OUTPUT);
pinMode(green, OUTPUT);
}
void loop()
{
digitalWrite(yellow,LOW);
digitalWrite(red ,HIGH);
delay(3000);
digitalWrite(yellow,HIGH);
digitalWrite(red ,LOW);
delay(1000);
digitalWrite(yellow,LOW);
digitalWrite(green ,HIGH);
delay(3000);
digitalWrite(yellow,HIGH);
digitalWrite(green ,LOW);
delay(1000);
}