I will be maintaining my libraries here: https://bit.ly/pATDBi I am the lead developer for libraries that ship with the Wiring distribution. As per version 1.0 - Wiring will support Arduino boards. You are welcome to check it out! https://wiring.org.co/download/
Scheduler Library for Arduino Author: Alexander Brevig Contact: alexanderbrevig@gmail.com
1.0 2009-05-09: Initial Release
1.0 2009-05-09: Initial Release
Scheduler is a library for the Arduino.
It is created to help scheduling of function calls, and hide the underlying Arduino API calls.
Download here: Scheduler.zip
Put the Scheduler folder in "hardware\libraries\".
In the Arduino IDE, create a new sketch (or open one) and select from the menubar "Sketch->Import Library->Scheduler".
Once the library is imported, an "#include <Scheduler.h>" line will appear at the top of your Sketch.
Scheduler()
Scheduler scheduler = Scheduler();
Initializes an Scheduler object ready to queue function calls.
Checks to see if it is time for a function to be called, if so, call it and remove it from queue.
Schedules a function call that should take place in time milliseconds.
How can I use multiple Schedulers?
Scheduler is a class. You can initialize multiple instances by repeating what you've already seen:
Scheduler scheduler = Scheduler();
You could add a Scheduler called scheduler2 by
Scheduler scheduler2 = Scheduler();
And now it's just to call the functions you need on the Scheduler you are interested in:
//update Schedulers scheduler.update(); scheduler2.update();
Part of AlphaBeta Libraries. | |
Last Modified: | April 29, 2016, at 10:32 AM |
By: | pert |