Будьте внимательны! Это приведет к удалению страницы «Home».
Big Thank you to:
Doanh Văn Lương (aka tarzan115) for creating this wiki based on my documentation! (I always wanted to do it, and always did not find the time.)
And to Uri Shaked for creating Wokwi - an online Arduino learning platform and TaskScheduler playground.
Check out other libraries: Dictionary, EspBootstrap, AverageFilter, and other.
Cooperative multitasking for Arduino microcontrollers
A lightweight implementation of cooperative multitasking (task scheduling) supporting:
milliseconds (default) or microseconds (if explicitly enabled) – frequency of executionstd::functionsScheduling overhead: between 15 and 18 microseconds per scheduling pass (Arduino UNO rev 3 @ 16MHz clock, single scheduler w/o prioritization)
Memory requirements: 46 bytes (plain vanilla), 57 bytes (IDLE sleep, WDT and LTS pointer support). Other options have similar memory footprints.
TaskScheduler was tested on the following platforms:
Arduino.h and millis() implementation)
Check the changes here
Implementation scenarios and ideas
1. Event driven programming
2. "Native" support for finite state machine
3. Multiple possible callbacks for task
4. Interrupt-driven execution support
5. Using onEnable and onDisable methods
6. Using status request objects
7. Using local task storage pointer
8. Enabling task prioritization
Futher information
Please refer to examples, provided with TaskScheduler package for further information and implementation options.
Real time examples of TaskScheduler are available here:
1. [http://www.instructables.com/id/APIS-Automated-Plant-Irrigation-System/](http://www.instructables.com/id/APIS-Automated-Plant-Irrigation-System/)
2. [http://www.instructables.com/id/Wave-your-hand-to-control-OWI-Robotic-Arm-no-strin/](http://www.instructables.com/id/Wave-your-hand-to-control-OWI-Robotic-Arm-no-strin/)
3. [http://www.instructables.com/id/Arduino-Nano-based-Hexbug-Scarab-Robotic-Spider](http://www.instructables.com/id/Arduino-Nano-based-Hexbug-Scarab-Robotic-Spider)
4. [http://www.instructables.com/id/Interactive-Predator-Costume-With-Head-Tracking-Pl/](http://www.instructables.com/id/Interactive-Predator-Costume-With-Head-Tracking-Pl/)
5. [https://www.instructables.com/id/Portable-Party-Lights/](https://www.instructables.com/id/Portable-Party-Lights/)
Будьте внимательны! Это приведет к удалению страницы «Home».