MCPcopy Create free account
hub / github.com/arkhipenko/TaskScheduler / t1Callback

Function t1Callback

examples/Scheduler_example16_Multitab/file1.cpp:14–30  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12
13
14void t1Callback() {
15 Serial.print("t1: ");
16 Serial.println(millis());
17
18 if (t1.isFirstIteration()) {
19 runner.addTask(t3);
20 t3.enable();
21 Serial.println("t1: enabled t3 and added to the chain");
22 }
23
24 if (t1.isLastIteration()) {
25 t3.disable();
26 runner.deleteTask(t3);
27 t2.setInterval(500);
28 Serial.println("t1: disable t3 and delete it from the chain. t2 interval set to 500");
29 }
30}
31

Callers

nothing calls this directly

Calls 8

millisFunction · 0.85
isFirstIterationMethod · 0.80
addTaskMethod · 0.80
isLastIterationMethod · 0.80
disableMethod · 0.80
deleteTaskMethod · 0.80
setIntervalMethod · 0.80
enableMethod · 0.45

Tested by

no test coverage detected