Smart Matrix
|
Timer class used for wait an amount of time. More...
#include <Timer.hpp>
Public Member Functions | |
Timer () | |
Timer constructor. More... | |
void | delayMicroseconds (uint32_t micro) |
Delay in microseconds. More... | |
void | delayMilliseconds (uint32_t millis) |
Delay in milliseconds. More... | |
Timer class used for wait an amount of time.
Timer class uses Timer interrupt 0 channel 0. You can use only one instance at a time.
Timer::Timer | ( | ) |
Timer constructor.
Configure timer interrupt 0 channel 0 to be used with a frequenty of 1 MHZ
void Timer::delayMicroseconds | ( | uint32_t | micro | ) |
Delay in microseconds.
Delay the flow of a code by given microseconds time interval.
void Timer::delayMilliseconds | ( | uint32_t | millis | ) |
Delay in milliseconds.
Delay the flow of a code by given milliseconds time interval.