Arduino-Scheduler
Portable Collaborative Multi-Tasking Scheduler for Arduino
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
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
27
Blink<10, 250>
blink1
;
28
Blink<11, 500>
blink2
;
29
Blink<12, 750>
blink3
;
30
Blink<13, 1000>
blink
;
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
}
blink1
Blink< 10, 250 > blink1
Definition:
SchedulerBlinkTemplateClass.ino:27
setup
void setup()
Definition:
SchedulerBlinkTemplateClass.ino:32
blink3
Blink< 12, 750 > blink3
Definition:
SchedulerBlinkTemplateClass.ino:29
Blink::loop
static void loop()
Definition:
Blink.h:33
blink2
Blink< 11, 500 > blink2
Definition:
SchedulerBlinkTemplateClass.ino:28
blink
Blink< 13, 1000 > blink
Definition:
SchedulerBlinkTemplateClass.ino:30
Blink::setup
static void setup()
Definition:
Blink.h:29
Blink.h
loop
void loop()
Definition:
SchedulerBlinkTemplateClass.ino:40
Scheduler
SchedulerClass Scheduler
Definition:
Scheduler.cpp:53
SchedulerClass::start
static bool start(func_t taskSetup, func_t taskLoop, size_t stackSize=DEFAULT_STACK_SIZE)
Definition:
Scheduler.cpp:76
Scheduler.h
Blink
Definition:
Blink.h:27
examples
SchedulerBlinkTemplateClass
SchedulerBlinkTemplateClass.ino
Generated on Thu Aug 31 2017 12:52:29 for Arduino-Scheduler by
1.8.11