Skip to content

toxnico/DMTimer

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.

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
  }
}