MyDelay

Arduino library that provides a non-blocking repeating timer with callback functionality.

Author
Marshall Gates
Website
https://github.com/mggates39/MyDelay
Category
Timing
License
MIT
Library Type
Contributed
Architectures
Any

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.

Downloads

Filename Release Date File Size
MyDelay-1.0.2.zip 2021-02-24 8.73 KiB
MyDelay-1.0.1.zip 8.56 KiB