int LEDG = 18; // change the number here to change the LED selected
int LEDY = 19;
int LEDR = 23;
void setup()
{
// put your setup code here, to run once:
Serial.begin(115200);
Serial.println("Hello, ESP32!");
pinMode(LEDG,OUTPUT);
pinMode(LEDY,OUTPUT);
pinMode(LEDR,OUTPUT);
}
void loop()
{ // codes in loop() runs forever
digitalWrite(LEDG,LOW);
digitalWrite(LEDY,LOW);
digitalWrite(LEDR,LOW);
delay(1000);// changing 1000 to a lower number speeds up the simulation
digitalWrite(LEDG, HIGH);
digitalWrite(LEDY,HIGH);
digitalWrite(LEDR,HIGH);
delay(1000); // changing 1000 to a lower number speeds up the simulation
}