Hello
Is the delay function accurate to provide a long periode time such as 2 hours, 10 hours 24 hours ?
Can I have a delay time as 2h30min30sec with a 9030000 value as delay function ?
I have to use the mini arduino, but I hesitate about the crystal frequency (8MHz or 16Mhz)
Yes you can have a delay up to 50 days. When putting a number over 32,000 into a delay call put a UL at the end of the number to give you an unsigned long type of constant.
Is the delay function accurate to provide a long periode time such as 2 hours, 10 hours 24 hours ?
Can I have a delay time as 2h30min30sec with a 9030000 value as delay function ?
Doing it the hard way.
Note the time with millis() that your event starts.
Calculate the time you want the event to end, for example 2 hours: 2 hrs * 60 min/hr * 60 sec/min * 1000mS/sec = 7,200,000mS, add that to the current time. That's your stop time.
Every pass thru loop, capture millis() again and compare it to the stop time. When it exceeds it, you're done.
That's blink without delay in a nutshell.