Hello
Is there a simple way to rewrite the schetch "one button blink" to change it so the led blink xx times with one button push.
Today it has the delay on off function for the ledpin.
Best regards
Patrik
Hello
Is there a simple way to rewrite the schetch "one button blink" to change it so the led blink xx times with one button push.
Today it has the delay on off function for the ledpin.
Best regards
Patrik
Can you give a more clear reference to sketch "one button blink" , I can't find it.
Sorry i mean the basic sketch "button" , is It a easy way to rewrite it so it blink the led 20 Times' with each buttonpush ?
Best regards
Patrik
In line 50, replace
digitalWrite(ledPin, HIGH);
with
for(int i=0;i<20;i++)
{
digitalWrite(ledPin, HIGH);
delay(1000);
digitalWrite(ledPin, LOW);
delay(1000);
}
or you could just write out the digitalWrite highs and lows 20 times but thats no fun XD
Thanks:-) , im a really newbie om this ![]()