millis() rollover safe code

The following code is an example to switch on an output for a Runtime, then off for an interval. Written for Arduino IDE.This code takes into account the issues with millis() rollover, which disallows comparing two distinct times in a loop, as discussed elsewhere.

millis() rollover safe code Read More ยป