/DMTimer

Another Arduino Timer

Primary LanguageC++GNU General Public License v3.0GPL-3.0

DMTimer

Another Arduino Timer, based on micros().

Allows to dynamically change the interval. Check the examples for more info.

The simplest use could be:

Timer myTimer(1000000); //Create a timer and specify its interval in microseconds

void setup(){
  Serial.begin(115200);
}

void loop(){
  if(myTimer.isTimeReached()){ //check if execution time has been reached
    Serial.println("Tick!"); //call what you need
  }
}