|
TinyRobotics
|
Simple periodic task scheduler for embedded and Arduino environments. More...
#include <Scheduler.h>
Protected Attributes | |
| unsigned long | start_time = 0 |
| bool | is_active_ = false |
| void(* | callback )(void *) = nullptr |
| void * | reference = nullptr |
| uint16_t | repeatMs_ |
Simple periodic task scheduler for embedded and Arduino environments.
This class provides a lightweight, non-blocking scheduler for executing a callback function at a fixed interval (in milliseconds). It is designed for use in embedded systems and Arduino sketches, where you want to perform periodic tasks (such as sensor readings, status updates, or control actions) without blocking the main loop.