#define Hijau 13
#define Biru 12
#define Merah 11

int status=0;

void setup() {
  pinMode(Hijau, OUTPUT);
  pinMode(Biru, OUTPUT);
  pinMode(Merah, OUTPUT);
  pinMode(7, INPUT);

  digitalWrite(Hijau, LOW);
  digitalWrite(Biru, LOW);
  digitalWrite(Merah, LOW);
}

void loop() {
  if(digitalRead(7) == HIGH)
  {
    status++;
    delay(200);
  }

  if(status==1)
  {
    digitalWrite(Hijau, HIGH);
  }
  else if(status==2)
  {
    digitalWrite(Biru, HIGH);
  }
  else if(status==3)
  {
    digitalWrite(Merah, HIGH);
  }
  else
  {
    status=0;
    digitalWrite(Hijau, LOW);
    digitalWrite(Biru, LOW);
    digitalWrite(Merah, LOW);
  }
}