| 68 | Task tBlink6 ( PERIOD6 * TASK_MILLISECOND, DURATION / PERIOD6, &blink6CB, &ts, false, &blink6OE, &blink6OD ); |
| 69 | |
| 70 | void 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 | |
| 82 | void loop() { |
| 83 | ts.execute(); |