How about
if(millis() % 2000 == 0) {
myRoutine();
}
Admitedly is causes some arithmatic in every loop but if there's little else to do anyway.
It will "hickup" at the wrap every 49 days but that may not be a problem.
Rob
How about
if(millis() % 2000 == 0) {
myRoutine();
}
Admitedly is causes some arithmatic in every loop but if there's little else to do anyway.
It will "hickup" at the wrap every 49 days but that may not be a problem.
Rob