![]() |
Doly C++ SDK v1.00
|
Functions | |
| int8_t | init () |
| Initialize the LED subsystem. | |
| int8_t | dispose () |
| Stop the worker thread and release resources. | |
| bool | isActive () |
| Check whether the LED subsystem is active (initialized). | |
| void | Abort (LedSide side) |
| Abort any running activity on the given side. | |
| void | processActivity (uint16_t id, LedSide side, LedActivity activity) |
| Set a LED activity to be processed asynchronously. | |
| float | getVersion () |
| Get current library version. | |
| void LedControl::Abort | ( | LedSide | side | ) |
Abort any running activity on the given side.
| side | LED side to abort. |
| int8_t LedControl::dispose | ( | ) |
Stop the worker thread and release resources.
| float LedControl::getVersion | ( | ) |
Get current library version.
Original note: format 0.XYZ (3 digits after major).
| int8_t LedControl::init | ( | ) |
Initialize the LED subsystem.
| bool LedControl::isActive | ( | ) |
Check whether the LED subsystem is active (initialized).
| void LedControl::processActivity | ( | uint16_t | id, |
| LedSide | side, | ||
| LedActivity | activity ) |
Set a LED activity to be processed asynchronously.
This is a non-blocking operation. The internal worker processes the activity and completion/error is reported via LedEvent callbacks.
| id | User-defined activity identifier (forwarded to completion/error events). |
| side | LED side to run the activity on. |
| activity | Activity parameters (colors, fade time). |