24 unsigned long previousMillis;
29 unsigned long interval;
A class to handle periodic time intervals.
Definition: Circadian.h:19
static unsigned long hoursToMillis(unsigned int hours)
Converts hours to milliseconds.
Definition: Circadian.cpp:61
static unsigned long minutesToMillis(unsigned int minutes)
Converts minutes to milliseconds.
Definition: Circadian.cpp:52
bool isElapsed()
Checks if the interval has elapsed.
Definition: Circadian.cpp:24
static unsigned long hertzToMillis(float hertz)
Converts frequency in hertz to milliseconds (period of the frequency).
Definition: Circadian.cpp:70
static unsigned long secondsToMillis(unsigned int seconds)
Converts seconds to milliseconds.
Definition: Circadian.cpp:43
Circadian(unsigned long _interval)
Constructor to initialize the interval and record the current time.
Definition: Circadian.cpp:15