#define LED_BIRU 19
#define LED_MERAH 18
#define LED_KUNING 5
#define BUTTON_PIN 15
void setup() {
pinMode(LED_BIRU, OUTPUT);
pinMode(LED_MERAH, OUTPUT);
pinMode(LED_KUNING, OUTPUT);
pinMode(BUTTON_PIN, INPUT);
}
void loop() {
if (digitalRead(BUTTON_PIN) == HIGH) {
digitalWrite(LED_BIRU, HIGH);
delay(1000);
digitalWrite(LED_BIRU, LOW);
delay(100);
digitalWrite(LED_MERAH, HIGH);
delay(1000);
digitalWrite(LED_MERAH, LOW);
delay(100);
digitalWrite(LED_KUNING, HIGH);
delay(1000);
digitalWrite(LED_KUNING, LOW);
delay(100);
}
else {
}
}