//lampu bawah
  int pinled0 = 0;//merah
  int pinled1 = 1;//kuning
  int pinled2 = 2;//hijau
  //lampu kanan
  int pinled3 = 3;//merah
  int pinled4 = 4;//kuning
  int pinled5 = 5;//hijau
  //lampu atas
  int pinled6 = 6;//merah
  int pinled7 = 7;//kuning
  int pinled8 = 8;//hijau
  //lampu kiri
  int pinled9 = 9;//merah
  int pinled10= 10;//kuning
  int pinled11= 11;//hijau

void setup() {

  //lampu bawah
  pinMode(pinled0, OUTPUT);//merah
  pinMode(pinled1, OUTPUT);//kuning
  pinMode(pinled2, OUTPUT);//hijau

  //lampu kanan
  pinMode(pinled3, OUTPUT);//merah
  pinMode(pinled4, OUTPUT);//kuning
  pinMode(pinled5, OUTPUT);//hijau

  //lampu atas
  pinMode(pinled6, OUTPUT);//merah
  pinMode(pinled7, OUTPUT);//kuning
  pinMode(pinled8, OUTPUT);//hijau

  //lampu kiri
  pinMode(pinled9, OUTPUT);//merah
  pinMode(pinled10, OUTPUT);//kuning
  pinMode(pinled11, OUTPUT);//hijau
}
  
void loop() {
   digitalWrite(pinled0, HIGH);//merah
 digitalWrite(pinled3, HIGH);//merah
 digitalWrite(pinled6, HIGH);//merah
 digitalWrite(pinled9, HIGH);//merah
  
  //pertama
  digitalWrite(pinled0, HIGH);
  delay(1000);
  digitalWrite(pinled0, LOW);
  delay(1000);
  digitalWrite(pinled1, HIGH);
  delay(1000);
  digitalWrite(pinled1, LOW);
  delay(1000);
  digitalWrite(pinled2, HIGH);
  delay(5000);
  digitalWrite(pinled2, LOW);
  delay(1000);
  digitalWrite(pinled1, HIGH);
  delay(2000);
  digitalWrite(pinled1, LOW);
  delay(1000);
  //kedua
  digitalWrite(pinled0, HIGH);
  digitalWrite(pinled3, HIGH);
  delay(1000);
  digitalWrite(pinled3, LOW);
  delay(1000);
  digitalWrite(pinled4, HIGH);
  delay(1000);
  digitalWrite(pinled4, LOW);
  delay(1000);
  digitalWrite(pinled5, HIGH);
  delay(5000);
  digitalWrite(pinled5, LOW);
  delay(1000);
   digitalWrite(pinled4, HIGH);
  delay(2000);
  digitalWrite(pinled4, LOW);
  delay(1000);
  //ketiga
  digitalWrite(pinled3, HIGH);
  digitalWrite(pinled6, HIGH);
  delay(1000);
  digitalWrite(pinled6, LOW);
  delay(1000);
  digitalWrite(pinled7, HIGH);
  delay(1000);
  digitalWrite(pinled7, LOW);
  delay(1000);
  digitalWrite(pinled8, HIGH);
  delay(5000);
  digitalWrite(pinled8, LOW);
  delay(1000);
   digitalWrite(pinled7, HIGH);
  delay(2000);
  digitalWrite(pinled7, LOW);
  delay(1000);
  //keempat
  digitalWrite(pinled6, HIGH);
  digitalWrite(pinled9, HIGH);
  delay(1000);
  digitalWrite(pinled9, LOW);
  delay(1000);
  digitalWrite(pinled10, HIGH);
  delay(1000);
  digitalWrite(pinled10, LOW);
  delay(1000);
  digitalWrite(pinled11, HIGH);
  delay(5000);
  digitalWrite(pinled11, LOW);
  delay(1000);
   digitalWrite(pinled10, HIGH);
  delay(2000);
  digitalWrite(pinled10, LOW);
  delay(1000);
  }