Pretend, that the t2 task is a special task, that needs to live in file2 object file.
| 21 | //Pretend, that the t2 task is a special task, |
| 22 | //that needs to live in file2 object file. |
| 23 | void t2Callback() { |
| 24 | Serial.print("t2: "); |
| 25 | Serial.println(millis()); |
| 26 | } |
| 27 | Task t2(3000, TASK_FOREVER, &t2Callback, &runner, true); |
| 28 | |
| 29 | //Lets define t3Callback here. We are going to use it in file1 |