#define ledMerah 2
#define ledKuning 4
#define ledHijau 7
void setup() {
// put your setup code here, to run once:
pinMode (ledMerah,OUTPUT);
pinMode (ledKuning,OUTPUT);
pinMode (ledHijau,OUTPUT);
}
void loop() {
// put your main code here, to run repeatedly:
digitalWrite (ledMerah,LOW);
digitalWrite (ledKuning,HIGH);
digitalWrite (ledHijau,LOW);
delay(1000);
digitalWrite (ledMerah,HIGH);
digitalWrite (ledKuning,LOW);
digitalWrite (ledHijau,LOW);
delay(3000);
digitalWrite (ledMerah,LOW);
digitalWrite (ledKuning,HIGH);
digitalWrite (ledHijau,LOW);
delay(1000);
digitalWrite (ledMerah,LOW);
digitalWrite (ledKuning,LOW);
digitalWrite (ledHijau,HIGH);
delay(3000);
}