using millis as 1 hour timer - Programming Questions - Arduino Forum
Instead consider millis() as a ever elasping millisecond timer that rolls over every 70 odd days. You want to add your own unsigned long that you can set, synchronize to and compare to the value returned by millis(). Genrally speaking, and there are serveral very popular guides already on this topic, the convention is:
more
|