gbdan:
Thanks!
It took a few times to absorb what you said but I think I have it. I'm trying to get my head around the millis link, I'm entirely new to this.
I can't just add millis(value) to the code, I have to input certain code so the arduino understands what millis is and what it does?
My head hurts, haha.
Maybe this will help: millis() is a function . Nothing is placed between the parentheses since you don't pass values to it. It only returns a value to the (unsigned long) variable on the left side of the '=' sign. The value returned by millis() increments constantly in the background.
The elapsed time is determined by storing millis() once then, some time later subtracting the value you stored from the current value of millis(). Since the current value will be greater than the value stored, subtraction yields the number of milliseconds counted since the value was stored.