Hi everyone,
I am new to Arduino so my question may seem silly .
I created simple sketch which uses one input pin and one output pin.
While input pin gets high for more than 10000 milli seconds output pin gets high.
Sketch logic:-
I defined one unsigned long variable - myvar
If input is low
then myvar = Millie()
If input is high
myvar holds last Millie value.
Then
if Millie() - myvar > 10000
Output turned high
Else
Output turned low.
This works fine. But I don't know what happens while Millis() getting overflow and reset to zero again.
Is my code works during Millis() overflow time????