Simple metro working with microseconds.
- Download this Library and rename the folder name into "MicroMetro"
- Put
Micrometro
folder into your arduino "Libraries" folder.
- Include Library
#include <MicroMetro.h>
- Create instance and set interval
MicroMetro metro = MicroMetro(1000000); // 1000000us = 1 sec
- in Loop()...
if(metro.check()) {
//do something here
}
These cods are licensed under CC-BY 4.0