//03_ANGGUN_XII3
int lampu1=3;
int lampu2=4;
int lampu3=5;
int lampu4=6;
int lampu5=7;
int lampu6=8;
int lampu7=9;
int lampu8=10;
int lampu9=11;
void setup() {
//put your setup code here, to run once :
pinMode(lampu1, OUTPUT);
pinMode(lampu2, OUTPUT);
pinMode(lampu3, OUTPUT);
pinMode(lampu4, OUTPUT);
pinMode(lampu5, OUTPUT);
pinMode(lampu6, OUTPUT);
pinMode(lampu7, OUTPUT);
pinMode(lampu8, OUTPUT);
pinMode(lampu9, OUTPUT);
}
void loop() {
//put your main code here, to run repeatedly
digitalWrite(lampu9, LOW);
digitalWrite(lampu8,LOW);
digitalWrite(lampu7, HIGH);
digitalWrite(lampu4, HIGH);
digitalWrite(lampu5,LOW);
digitalWrite(lampu6,LOW);
digitalWrite(lampu3, HIGH);
digitalWrite(lampu2, LOW);
digitalWrite(lampu1, LOW);
delay(5000);
digitalWrite(lampu7,HIGH);
digitalWrite(lampu8, LOW);
digitalWrite(lampu9, LOW);
digitalWrite(lampu5, LOW);
digitalWrite(lampu4, HIGH);
digitalWrite(lampu6, LOW);
digitalWrite(lampu2, HIGH);
digitalWrite(lampu3, LOW);
digitalWrite(lampu1, LOW);
delay(2000);
digitalWrite(lampu7, HIGH);
digitalWrite(lampu8, LOW);
digitalWrite(lampu9, LOW);
digitalWrite(lampu4,LOW);
digitalWrite(lampu5, LOW);
digitalWrite(lampu6, HIGH);
digitalWrite(lampu1,HIGH);
digitalWrite(lampu2, LOW);
digitalWrite(lampu3, LOW);
delay(5000);
digitalWrite(lampu7, HIGH);
digitalWrite(lampu8, LOW);
digitalWrite(lampu9, LOW);
digitalWrite(lampu5, HIGH);
digitalWrite(lampu4, LOW);
digitalWrite(lampu6, LOW);
digitalWrite(lampu3, LOW);
digitalWrite(lampu1, HIGH);
digitalWrite(lampu2, LOW);
delay(2000);
digitalWrite(lampu9, HIGH);
digitalWrite(lampu8, LOW);
digitalWrite(lampu7, LOW);
digitalWrite(lampu4, HIGH);
digitalWrite(lampu5, LOW);
digitalWrite(lampu6, LOW);
digitalWrite(lampu3, LOW);
digitalWrite(lampu2, LOW);
digitalWrite(lampu1, HIGH);
delay(5000);
digitalWrite(lampu9, LOW);
digitalWrite(lampu8, HIGH);
digitalWrite(lampu7, LOW);
digitalWrite(lampu4, HIGH);
digitalWrite(lampu5, LOW);
digitalWrite(lampu6, LOW);
digitalWrite(lampu1, HIGH);
digitalWrite(lampu2, LOW);
digitalWrite(lampu3, LOW);
delay(2000);
}