How to declare a TIMESHARING array.


DESCRIPTION
Time sharing array is used to describe how often a function will run.

On every field of the array you need an unsigned integer that declares how often that function will run, and the function name.

An example of time sharing array declaration:

TIMESHARING timeSharingArray[] = {
{500, displayMillis},
{5000,lcdBacklight},
{100,redBlink},
{100000,beep},
};


SYNTAX
<unsigned int>,<Fuction name>


  • <unsigned int> How often the function will run in Millis


  • <Function Name> The function Name.




Example #1 - Red Blink


Example #2 - Mulitple Time Sharing


SEE ALSO