#define led 13
#define tombol 25
void setup() {
// put your setup code here, to run once:
pinMode(led,OUTPUT);
pinMode(tombol, INPUT_PULLUP);
}
void loop() {
// put your main code here, to run repeatedly:
delay(10); // this speeds up the simulation
if(digitalRead(tombol)==LOW) {
for(int i=0;i<100;i++) {
digitalWrite(led,HIGH); delay(500);
digitalWrite(led,LOW); delay(500);
}
}
}