// Nama: Risman Saputra
// NIM: 2112003

int m1 =1; //lampu 1
int k1 =2;
int h1 =3;
int m2 =4; //lampu 2
int k2 =5;
int h2 =6;
int m3 =7; //lampu 3
int k3 =8;
int h3 =9;
int m4 =10; //lampu 4
int k4 =11;
int h4 =12;
void setup() {
//lampu lantas 1
pinMode(m1, OUTPUT);
pinMode(k1, OUTPUT);
pinMode(h1, OUTPUT);
//lampu lantas 2
pinMode(m2, OUTPUT);
pinMode(k2, OUTPUT);
pinMode(h2, OUTPUT);
//lampu lantas 3
pinMode(m3, OUTPUT);
pinMode(k3, OUTPUT);
pinMode(h3, OUTPUT);
//lampu lantas 4
pinMode(m4, OUTPUT);
pinMode(k4, OUTPUT);
pinMode(h4, OUTPUT);
//digiwrite
digitalWrite(m1, HIGH);
digitalWrite(m2, HIGH);
digitalWrite(m3, HIGH);
digitalWrite(m4, HIGH);
}

void loop() {
  // put your main code here, to run repeatedly:
//lampu 1
  digitalWrite(m1, LOW);
  digitalWrite(k1, HIGH);
  delay(1000);
  digitalWrite(k1, LOW);
  digitalWrite(h1, HIGH);
  delay(3000);
  digitalWrite(h1, LOW);
  digitalWrite(k1, HIGH);
  delay(1000);
  digitalWrite(k1, LOW);
  digitalWrite(m1, HIGH);
//lampu 2
  digitalWrite(m2, LOW);
  digitalWrite(k2, HIGH);
  delay(1000);
  digitalWrite(k2, LOW);
  digitalWrite(h2, HIGH);
  delay(3000);
  digitalWrite(h2, LOW);
  digitalWrite(k2, HIGH);
  delay(1000);
  digitalWrite(k2, LOW);
  digitalWrite(m2, HIGH);
//lampu 3
  digitalWrite(m3, LOW);
  digitalWrite(k3, HIGH);
  delay(1000);
  digitalWrite(k3, LOW);
  digitalWrite(h3, HIGH);
  delay(3000);
  digitalWrite(h3, LOW);
  digitalWrite(k3, HIGH);
  delay(1000);
  digitalWrite(k3, LOW);
  digitalWrite(m3, HIGH);
//lampu 4
  digitalWrite(m4, LOW);
  digitalWrite(k4, HIGH);
  delay(1000);
  digitalWrite(k4, LOW);
  digitalWrite(h4, HIGH);
  delay(3000);
  digitalWrite(h4, LOW);
  digitalWrite(k4, HIGH);
  delay(1000);
  digitalWrite(k4, LOW);
  digitalWrite(m4, HIGH);
}