#define ledmerah 13
#define ledkuning 12
#define ledhijau 11
#define buzzer 4
void setup() {
pinMode(ledmerah, OUTPUT);
pinMode(ledkuning, OUTPUT);
pinMode(ledhijau, OUTPUT);
pinMode(buzzer, OUTPUT);
}
void loop() {
digitalWrite(buzzer, LOW);
tone(4,10000,10000);
digitalWrite(ledmerah, HIGH);
delay(100);
digitalWrite(ledmerah, LOW);
delay(100);
digitalWrite(ledkuning, HIGH);
delay(100);
digitalWrite(ledkuning, LOW);
delay(100);
digitalWrite(ledhijau, HIGH);
delay(100);
digitalWrite(ledhijau, LOW);
delay(100);
}