If you want something to happen once per minute, am I right in assuming that delay(60000) will save a great deal of battery life over something like:
if ((millis() - logTime) < LOG_INTERVAL) {
return;
} else...
?
If you want something to happen once per minute, am I right in assuming that delay(60000) will save a great deal of battery life over something like:
if ((millis() - logTime) < LOG_INTERVAL) {
return;
} else...
?
I think delay will overflow, 20 secs works for sure. My fix was to run delay(1000) multiple times. So you could run delay(20000) 3 times.
That said, I dont think it would save much battery life, Ive read something about a sleep mode that might save some.
Delay() won't save anything, the processor is still running flat stick.
You heed to enter sleep mode to save power.
Rob
Wow, that's interesting. I need to read up on sleep mode. Thanks tnovak and Graynomad!