int ledmerah = 5;
int ledhijau = 2;
int ledkuning = 4;
void setup() {
// put your setup code here, to run once:
pinMode(ledmerah, OUTPUT);
pinMode(ledhijau, OUTPUT);
pinMode(ledkuning, OUTPUT);
}
void loop() {
// put your main code here, to run repeatedly:
digitalWrite(ledmerah, HIGH);
delay(2000);
digitalWrite(ledmerah, LOW);
digitalWrite(ledkuning, HIGH);
delay(2000);
digitalWrite(ledkuning, LOW);
digitalWrite(ledhijau, HIGH);
delay(2000);
digitalWrite(ledhijau, LOW);
}