summaryrefslogtreecommitdiff
path: root/examples/Scheduler_example3
diff options
context:
space:
mode:
authorAnatoli Arkhipenko <arkhipenko@hotmail.com>2015-10-22 23:17:45 -0400
committerAnatoli Arkhipenko <arkhipenko@hotmail.com>2015-10-22 23:17:45 -0400
commitccd1047d0286027ff98ee7f1dfdfa1f9d5e6e4e3 (patch)
tree2481326454d89e1977923475fda443ba3a78922c /examples/Scheduler_example3
parentbb20df9c654cbed77bb5007814ae06f20f08ec36 (diff)
Support for taask IDs and Control Pointsv1.8.1
* Automatically and manually assigned task IDs * Manually assigned Control Points within task's callback function * Updated existing examples * New example sketches
Diffstat (limited to 'examples/Scheduler_example3')
-rw-r--r--examples/Scheduler_example3/Scheduler_example3.ino9
1 files changed, 9 insertions, 0 deletions
diff --git a/examples/Scheduler_example3/Scheduler_example3.ino b/examples/Scheduler_example3/Scheduler_example3.ino
index d683855..7111ac3 100644
--- a/examples/Scheduler_example3/Scheduler_example3.ino
+++ b/examples/Scheduler_example3/Scheduler_example3.ino
@@ -1,3 +1,12 @@
+/**
+ * TaskScheduler Test of OnEnable and OnDisable methods and illustration of using wrapper tasks for timout purposes
+ *
+ * A wrapper task runs every 30 seconds and initiates the test case
+ * Another task is run once for 5 seconds, and serves as a LED blinking timeout - 5 seconds
+ * Finally, a dedicated task which controls LED is running periodically until stopped, and makes the LED blink with 0.5 to 1 second interval.
+ *
+ */
+
#define _TASK_SLEEP_ON_IDLE_RUN
#include <TaskScheduler.h>