3 #include <leddevice/LedDevice.h> 29 bool init(
const QJsonObject &deviceConfig);
41 virtual int write(
const std::vector<ColorRgb> &ledValues);
45 RGBW::WhiteAlgorithm _whiteAlgorithm;
Interface (pure virtual base class) for LedDevices.
Definition: LedDevice.h:32
static LedDevice * construct(const QJsonObject &deviceConfig)
constructs leddevice
Definition: LedDeviceWS281x.cpp:63
Implementation of the LedDevice interface for writing to Ws2812 led device via pwm.
Definition: LedDeviceWS281x.h:9
LedDeviceWS281x(const QJsonObject &deviceConfig)
Constructs specific LedDevice.
Definition: LedDeviceWS281x.cpp:5
bool init(const QJsonObject &deviceConfig)
Sets configuration.
Definition: LedDeviceWS281x.cpp:19
Plain-Old-Data structure containing the red-green-blue color specification.
Definition: ColorRgbw.h:13
~LedDeviceWS281x()
Destructor of the LedDevice, waits for DMA to complete and then cleans up.
Definition: LedDeviceWS281x.cpp:11