5#include "led_adapter.h"
7#include "PesudoLedController.h"
46#ifdef USE_REAL_ADAPTER
47 LEDAdapter ledAdapter;
High-level controller interface for controlling LEDs, abstracting real or pseudo backends.
Definition LEDController.h:12
bool processByPackage(const LEDParamsPackage *package)
Processes the LED using a parameter package.
Definition LEDController.h:41
void redirectTo(const std::string &ledName)
Redirects the controller to another LED.
Definition LEDController.h:22
Modes getMode() const
Gets the current LED control mode.
Definition LEDController.h:36
std::string ledPath() const
Returns the LED path in use.
Definition LEDController.h:28
~LEDController()=default
Default destructor.
void setMode(const Modes mode)
Sets the control mode.
Definition LEDController.h:32
LEDController()=default
Default constructor.
Base class for LED parameter packages.
Definition LEDParamsPackage.h:14
Simulated LED controller used when real hardware is not available.
Definition PesudoLedController.h:9
void setMode(const Modes mode)
Sets the control mode.
Definition PesudoLedController.h:27
void redirectTo(const std::string &ledName)
Redirects to another LED (no-op in simulation).
Definition PesudoLedController.h:19
std::string ledPath() const
Returns the (simulated) LED path.
Definition PesudoLedController.h:23
bool processByPackage(const LEDParamsPackage *package)
Processes the parameter package (always succeeds in simulation).
Definition PesudoLedController.h:36
Modes getMode() const
Gets the current control mode.
Definition PesudoLedController.h:31