Usage:
- run function blinkLED() every 2000 ms:
timer.addEverytime(2000, blinkLED);
- run function itWorks() two times with interval 2000 ms, wait 300 ms before first start:
timer.addTask(2000, 2, 300, itWorks);
Removing a task:
removeEverytime(callback_function);
removeTask(callback_function);
Library can also be used in desktop C++ applications:
#include <iostream>
#include <string>
#include <chrono>
#include <thread>
#include "RZtimer.h"
int main()
{
RZTimer timer...