MyDelay

Timing

Arduino library that provides a non-blocking repeating timer with callback functionality.
This library is designed to simplify using the builtin Arduino mills function without all the setup. This is done by creating a MyDelay object and setting the amount of time for the delay you want. From there you place code you want to run in a if statement that checks the update(). If the time for the delay has passed, update will return true. You are also able to run a function in place of an if statement block using a void function and adding it when creating the MyDelay object. You can also set a maximum number of times the timer will repeat. The default is to repeat forever.

Author: Marshall Gates

Maintainer: Marshall Gates

Read the documentation

Compatibility

This library is compatible with all architectures so you should be able to use it on all the Arduino boards.

Releases

To use this library, open the Library Manager in the Arduino IDE and install it from there.