Core Function: setTaskPeriod()
From ChipKit Wiki
Syntax:
void setTaskPeriod(int id, unsigned long period)
Parameters:
| id | Task identifier of task to modify |
| period | New scheduling interval in milliseconds for the task |
Return Value:
None
Description:
This function is used to modify the scheduling interval for the specified task. The task will be run the specified number of milliseconds after the function is called, and each time thereafter, depending on the task enable state. If the task is disabled, the scheduling interval is modified, but it remains disabled.