#define ledBiru 3
#define buttonBiru 11
int i=0;
void setup() {
// put your setup code here, to run once:
pinMode(ledBiru, OUTPUT);
pinMode(buttonBiru, INPUT_PULLUP);
}
void loop() {
// put your main code here, to run repeatedly:
if(digitalRead(buttonBiru) == LOW){
while(digitalRead(buttonBiru)== LOW)
{delay(10);}
i++;
}
if(i%2 == 1)
{
digitalWrite(ledBiru, HIGH);
}
else{
digitalWrite(ledBiru, LOW);
}
}