Skip to content

The Scheduler

Aaron Wisner edited this page Jul 9, 2016 · 3 revisions

A Scheduler oversees and manages Processes. There should only be one Scheduler in your project. Inside of void loop(), the scheduler's run() method should be repeatedly called. Each call to run() will run one pass through the Scheduler's Process chain.

#include <ProcessScheduler.h>

Scheduler sched; // Create a global Scheduler object

void setup() 
{
}

void loop() 
{
    sched.run();
}
Clone this wiki locally