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

Function setup

examples/Scheduler_example27_PlatformIO/src/main.cpp:70–80  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

68Task tBlink6 ( PERIOD6 * TASK_MILLISECOND, DURATION / PERIOD6, &blink6CB, &ts, false, &blink6OE, &blink6OD );
69
70void setup() {
71 // put your setup code here, to run once:
72#if defined(_DEBUG_) || defined(_TEST_)
73 Serial.begin(115200);
74 delay(TASK_SECOND);
75 _PL("TaskScheduler Blink example");
76 _PL("Blinking for 10 seconds using various techniques\n");
77 delay(2 * TASK_SECOND);
78#endif
79 pinMode(LED_BUILTIN, OUTPUT);
80}
81
82void loop() {
83 ts.execute();

Callers

nothing calls this directly

Calls 3

delayFunction · 0.85
pinModeFunction · 0.85
beginMethod · 0.45

Tested by

no test coverage detected