Skip to main content

I found solution as below

[code] if ( button1PushCounter == 3 ) {:-

if ( button1PushCounter == 3 ) { for (int i = 0; i < 5; i++) { delay(1000); Serial.println(i); a = HIGH; } } if ( a == HIGH ) { digitalWrite(led, HIGH); delay(1000); digitalWrite(led, LOW); a = LOW; button1PushCounter = 0; } 

[/code]

I found solution as below

[code] if ( button1PushCounter == 3 ) {

 for (int i = 0; i < 5; i++) { delay(1000); Serial.println(i); a = HIGH; } } if ( a == HIGH ) { digitalWrite(led, HIGH); delay(1000); digitalWrite(led, LOW); a = LOW; button1PushCounter = 0; } 

[/code]

I found solution as below:-

if ( button1PushCounter == 3 ) { for (int i = 0; i < 5; i++) { delay(1000); Serial.println(i); a = HIGH; } } if ( a == HIGH ) { digitalWrite(led, HIGH); delay(1000); digitalWrite(led, LOW); a = LOW; button1PushCounter = 0; } 
Source Link

I found solution as below

[code] if ( button1PushCounter == 3 ) {

 for (int i = 0; i < 5; i++) { delay(1000); Serial.println(i); a = HIGH; } } if ( a == HIGH ) { digitalWrite(led, HIGH); delay(1000); digitalWrite(led, LOW); a = LOW; button1PushCounter = 0; } 

[/code]