int led_merah = 22;
int led_kuning = 21;
int led_hijau = 17;
void setup() {
// put your setup code here, to run once:
Serial.begin(115200);
Serial.println("Hello, ESP32!");
pinMode(led_merah, OUTPUT);
pinMode(led_kuning, OUTPUT);
pinMode(led_hijau, OUTPUT);
}
void loop() {
digitalWrite(led_hijau,LOW);
digitalWrite(led_merah, HIGH);
digitalWrite(led_kuning, LOW);
delay(4000);
digitalWrite(led_kuning, HIGH);
delay(500);
digitalWrite(led_kuning, LOW);
delay(500);
digitalWrite(led_kuning, HIGH);
delay(500);
digitalWrite(led_kuning, LOW);
delay(500);
digitalWrite(led_kuning, HIGH);
delay(500);
digitalWrite(led_kuning, LOW);
delay(500);
digitalWrite(led_kuning, HIGH);
delay(500);
digitalWrite(led_kuning, LOW);
delay(500);
digitalWrite(led_merah, LOW);
digitalWrite(led_merah,LOW);
digitalWrite(led_kuning, LOW);
digitalWrite(led_hijau, HIGH);
delay(4000);
}