const int merah = 4;
const int kuning = 5;
const int hijau = 6;
const int biru = 7;
const int ungu = 8;
void setup() {
pinMode(merah, OUTPUT);
pinMode(kuning, OUTPUT);
pinMode(hijau, OUTPUT);
pinMode(biru, OUTPUT);
pinMode(ungu, INPUT);
}
void loop() {
digitalWrite(merah, HIGH);
digitalWrite(merah, LOW);
digitalWrite(kuning, HIGH);
digitalWrite(kuning, LOW);
digitalWrite(biru, HIGH);
digitalWrite(biru, LOW);
digitalWrite(ungu, HIGH);
digitalWrite(ungu, LOW);
delay(500);
digitalWrite(hijau, HIGH);
digitalWrite(hijau, LOW);
digitalWrite(hijau, HIGH);
digitalWrite(hijau, LOW);
delay(500);
}