int button = 13;
int nilaitombol;
int led = 12;
void setup() {
pinMode(button, INPUT);
pinMode(led, OUTPUT);
}
void loop() {
// put your main code here, to run repeatedly:
nilaitombol = digitalRead(button);
if (nilaitombol == HIGH) {
digitalWrite(led, HIGH);
delay(200);
digitalWrite(led, LOW);
delay(200);
}else{
digitalWrite(led, LOW);
}
}