My First Arduino IDE Library Is Live
I created and submitted an Arduino library called MyDelay. This library is designed to simplify using the builtin Arduino mills function without all the setup.
The IDE team accepted the library and now you can find it in the Arduino IDE under Timing.
The GitHub repository for the library is here.
To check it if the delay time has past, call the update function which will check time and run the set function.
Using the start function, you are able to restart the timer for delay. The stop function will terminate a timer before the repeat count has been reached. This allows you more control over when and how often a delay with trigger.
The delay time can be change using setDelay using a time in milliseconds.
Written by Marshall G Gates MIT license, check license.md for more information
Based on noDelay library by Mario Avenoso of mtechcreations.com
Comments