#define led_merah 13
#define led_kuning 12
#define led_hijau 11
#define tombol 7

int status = 0;

void setup() {
  // put your setup code here, to run once:
pinMode(led_merah, OUTPUT);
pinMode(led_kuning, OUTPUT);
pinMode(led_hijau, OUTPUT);
pinMode(tombol, INPUT);

digitalWrite(led_merah, LOW);
digitalWrite(led_kuning, LOW);
digitalWrite(led_hijau,LOW);

}

void loop() {
  // put your main code here, to run repeatedly:
if (digitalRead (tombol) == HIGH)
{

  digitalWrite(led_kuning,HIGH);
  delay(3000); // 3(s)
  digitalWrite(led_kuning,LOW);

  digitalWrite(led_merah, HIGH);
  delay(5000); // 5(s)
  
  digitalWrite(led_kuning,HIGH);
  delay(2000); // 2(s)
  digitalWrite(led_kuning,LOW);
  digitalWrite(led_merah, LOW);
  digitalWrite(led_hijau,HIGH);
  delay(3000); // 3(s)
  digitalWrite(led_kuning,LOW);
  digitalWrite(led_merah, LOW);
  digitalWrite(led_hijau, LOW);
}
}