class: mEventDelayMicros
for timing events with microsecond resolution
Description
A copy of Mozzi’s EventDelay class with microsecond resolution. Functions like a kitchen timer. set() the timer to a number of microseconds, then after calling start(), ready() will return true when the time is up.
Class Methods
Constructor
mEventDelayMicros(uint64_t delay_microseconds = 0)delay_microseconds: how long until ready() returns true after calling start()
void set(uint64_t delay_microseconds)delay_microseconds: how long until ready() returns true after calling start()
void start()Starts the timer
void start(int64_t delay_microseconds)Sets the delay time (in microseconds) and starts the timer
bool ready()Checks if the delay time has elapsed. Returns true if yes, false if no.
Example