Doly C++ SDK v1.00
Loading...
Searching...
No Matches
LedControl.h
Go to the documentation of this file.
1#pragma once
2
3#include "LedEvent.h"
4
19
20namespace LedControl
21{
35 int8_t init();
36
44 int8_t dispose();
45
50 bool isActive();
51
56 void Abort(LedSide side);
57
68 void processActivity(uint16_t id, LedSide side, LedActivity activity);
69
77 float getVersion();
78
79};
Event registration helpers for the LED subsystem.
LedSide
Which LED(s) to address.
Definition LedEventListener.h:28
Definition LedControl.h:21
float getVersion()
Get current library version.
int8_t dispose()
Stop the worker thread and release resources.
void processActivity(uint16_t id, LedSide side, LedActivity activity)
Set a LED activity to be processed asynchronously.
bool isActive()
Check whether the LED subsystem is active (initialized).
int8_t init()
Initialize the LED subsystem.
void Abort(LedSide side)
Abort any running activity on the given side.
Describes a single LED activity (color and fade parameters).
Definition LedEventListener.h:66