You will continue having to hold the switch pressed until all the delay() calls are done, unless you get rid of them. Look at, understand, and embrace the blink without delay example, and banish the delay() function from your repertoire.
So all the delay's down in the void looP() need to go bye, bye?
QuoteSo all the delay's down in the void looP() need to go bye, bye?The delay(10) for debouncing can stay. The rest have got to hit the road.
I am having a real hard time understanding how to incorporate this in to my code.
The millis() function replaces the watch. Variables replace the paper and pencil. The methodology stays the same.
I think I am over thinking it. but it's driving me crazy.