Hi all!
I'm lost.
I'm trying to make a simple single button that if you press it once, it goes into state 1. Double press it within 2 seconds, it goes in to state 2. Longer than 2 seconds it goes back to state 0.
I can't seem to get it from state 1 to state 0 after the 2 second delay.
Your help would be greatly appreciated!

Also, will the millis() count ever get so high that it overflows the Arduino and resets it?
Thanks guys

Shared publiclyView activity