Posts

Showing posts from March 7, 2021

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 . From the read me file... To start create a MyDelay variable. From here you are able to set a delay time, a delay time, a function to run and a repeat count or nothing at all. 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 libr...