Skip to content

adaxiik/ticker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

Ticker.hpp

Small Ticker class to simulate Mbed ticker

Usage

#include "Ticker.hpp"

void myFunction()
{
    // Do something
}
int main()
{
    Ticker ticker;
    ticker.attach(myFunction, 1000); // time in ms
    
    while(1){}; // to keep program running
    return 0;
}

Notes

  • May need to be compiled with -pthread

About

Small Ticker class to simulate Mbed ticker

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages