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

Function blink3CB

examples/Scheduler_example27_PlatformIO/src/main.cpp:141–159  ·  view source on GitHub ↗

=== 3 =====================================

Source from the content-addressed store, hash-verified

139
140// === 3 =====================================
141void blink3CB() {
142 if ( tBlink3.isFirstIteration() ) {
143 _PP(millis());
144 _PL(": Blink3 - Run Counter driven");
145 }
146
147 if ( tBlink3.getRunCounter() & 1 ) {
148 LEDOn();
149 }
150 else {
151 LEDOff();
152 }
153
154 if ( tBlink3.isLastIteration() ) {
155 tBlink4On.setOnEnable( &blink41OE );
156 tBlink4On.restartDelayed( 2 * TASK_SECOND );
157 LEDOff();
158 }
159}
160
161
162// === 4 =============================================

Callers

nothing calls this directly

Calls 8

millisFunction · 0.85
isFirstIterationMethod · 0.80
getRunCounterMethod · 0.80
isLastIterationMethod · 0.80
setOnEnableMethod · 0.80
restartDelayedMethod · 0.80
LEDOnFunction · 0.70
LEDOffFunction · 0.70

Tested by

no test coverage detected