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

Function blink3CB

examples/Scheduler_example29_NonArduino/src/main.cpp:154–172  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

152
153// === 3 =====================================
154void blink3CB() {
155 if ( tBlink3.isFirstIteration() ) {
156 _PP(millis());
157 _PL(": Blink3 - Run Counter driven");
158 }
159
160 if ( tBlink3.getRunCounter() & 1 ) {
161 LEDOn();
162 }
163 else {
164 LEDOff();
165 }
166
167 if ( tBlink3.isLastIteration() ) {
168 tBlink4On.setOnEnable( &blink41OE );
169 tBlink4On.restartDelayed( 2 * TASK_SECOND );
170 LEDOff();
171 }
172}
173
174
175// === 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