dinghino / TicToc

Timer library for arduino for functions and class members

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Timer removal

dinghino opened this issue · comments

Need to be able to remove / mark for removal or at least deactivate timers.

Use case would be for example a button pressed that sets a timer for an action (dim a light over time?) that gets pressed again while the timer still runs.
Desired behavior would be to delete the timer and replace it with a new one.

Implementation could be done like JS setTimeout and setInterval, returning a token when a timer is created (that has to be stored somewhere) and passing that to a remove function to do what needs to be done.