int ledPin = 10;
voidsetup() {
//put your main code here, to run once:
pinMode(ledPin, OUTPUT);
}
void loop() {
//put your main code here, to run repeatedly:
digitalWrite(ledPin, HIGH);
delay(1000);
//LED hidup selama 1 detik
digitalWrite(ledPin, LOW);
delay(1000);
//LED mati selama 1 detik
}