// definisikan variabel ke pin
#define led1 7 //pin7
#define led2 4 //pin4
void setup() {
// put your setup code here, to run once:
pinMode(led1, OUTPUT);
pinMode(led2, OUTPUT);
}
void loop() {
// led akan menyala dan mati selama 2 detik:
digitalWrite(led1, HIGH);
delay(3000);
digitalWrite(led2, HIGH);
delay(2000);
digitalWrite(led1, LOW);
delay(2000);
digitalWrite(led2, LOW);
delay(3000);
}