| 86 | // === 1 ======================================= |
| 87 | bool LED_state = false; |
| 88 | void blink1CB() { |
| 89 | if ( tBlink1.isFirstIteration() ) { |
| 90 | _PP(millis()); |
| 91 | _PL(": Blink1 - simple flag driven"); |
| 92 | LED_state = false; |
| 93 | } |
| 94 | |
| 95 | if ( LED_state ) { |
| 96 | LEDOff(); |
| 97 | LED_state = false; |
| 98 | } |
| 99 | else { |
| 100 | LEDOn(); |
| 101 | LED_state = true; |
| 102 | } |
| 103 | |
| 104 | if ( tBlink1.isLastIteration() ) { |
| 105 | tBlink2.restartDelayed( 2 * TASK_SECOND ); |
| 106 | LEDOff(); |
| 107 | } |
| 108 | } |
| 109 | |
| 110 | |
| 111 | // === 2 ====================================== |
nothing calls this directly
no test coverage detected