Doly C++ SDK v1.00
Loading...
Searching...
No Matches
LedControl.h File Reference

Public API for Doly LED control. More...

#include "LedEvent.h"

Go to the source code of this file.

Namespaces

namespace  LedControl

Functions

int8_t LedControl::init ()
 Initialize the LED subsystem.
int8_t LedControl::dispose ()
 Stop the worker thread and release resources.
bool LedControl::isActive ()
 Check whether the LED subsystem is active (initialized).
void LedControl::Abort (LedSide side)
 Abort any running activity on the given side.
void LedControl::processActivity (uint16_t id, LedSide side, LedActivity activity)
 Set a LED activity to be processed asynchronously.
float LedControl::getVersion ()
 Get current library version.

Detailed Description

Public API for Doly LED control.

This API controls the left/right arm LEDs and processes LED activities (color fades) using an internal worker thread. Completion and error events can be observed via LedEvent.

Design notes:

  • Singleton-style control (namespace API; no instances)
  • init() must be called before processing activities
  • processActivity() is non-blocking (handled by a worker thread)