Arduino-Scheduler
Portable Collaborative Multi-Tasking Scheduler for Arduino
SchedulerBlinkTemplateClass.ino
Go to the documentation of this file.
1 
23 #include <Scheduler.h>
24 #include "Blink.h"
25 
26 // Blink task functions with pin and delay period
31 
32 void setup()
33 {
34  blink.setup();
35  Scheduler.start(blink1.setup, blink1.loop);
36  Scheduler.start(blink2.setup, blink2.loop);
37  Scheduler.start(blink3.setup, blink3.loop);
38 }
39 
40 void loop()
41 {
42  blink.loop();
43 }
Blink< 10, 250 > blink1
Blink< 12, 750 > blink3
Blink< 11, 500 > blink2
Blink< 13, 1000 > blink
SchedulerClass Scheduler
Definition: Scheduler.cpp:53
static bool start(func_t taskSetup, func_t taskLoop, size_t stackSize=DEFAULT_STACK_SIZE)
Definition: Scheduler.cpp:76