millis sometimes increments by 2 instead of 1
OK I've been thinking about this. % will then either return 0 or 1, is that the case?
If so then
if((millis() % 2000) < 2) {
myRoutine();
}
Should work.
Rob
millis sometimes increments by 2 instead of 1
OK I've been thinking about this. % will then either return 0 or 1, is that the case?
If so then
if((millis() % 2000) < 2) {
myRoutine();
}
Should work.
Rob