int ledPin = 10;
void setup() {
// put your setup code here, to run once:
//pin 10 sebagai OUTPUT 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 }
}