Libraries
\ Scheduler
Reference for Wiring version 1.0 Build 0100+ If you have a previous version, use the reference included with your software. If see any errors or have any comments, let us know.
Name |
Scheduler |
Examples |
#include <Scheduler.h>
Scheduler <10> scheduler;
const byte ledPin = WLED;
void setup()
{
Serial.begin(9600);
pinMode(ledPin,OUTPUT);
}
void loop()
{
scheduler.update();
if (Serial.available())
{
scheduler.schedule(setHigh,500);
Serial.flush();
}
}
void setHigh()
{
digitalWrite(ledPin,HIGH);
scheduler.schedule(setLow,500);
}
void setLow()
{
digitalWrite(ledPin,LOW);
}
|
Description |
Initialize the Scheduler. |
Syntax |
Scheduler < maxfunctionsToCall > name;
|
Methods |
|
Parameters |
functionsToCall |
int: maximum number of functions to call |
name |
schedule name |
|
|
|
Returns |
None |
Usage |
Application |
Updated on July 07, 2011 11:11:26pm PDT