4 #include "ProviderSpi.h" 22 virtual bool init(
const QJsonObject &deviceConfig);
31 virtual int write(
const std::vector<ColorRgb> &ledValues);
39 uint8_t calculateChecksum(
const ColorRgb & color)
const;
Interface (pure virtual base class) for LedDevices.
Definition: LedDevice.h:32
static LedDevice * construct(const QJsonObject &deviceConfig)
constructs leddevice
Definition: LedDeviceP9813.cpp:9
virtual bool init(const QJsonObject &deviceConfig)
Sets configuration.
Definition: LedDeviceP9813.cpp:14
Implementation of the LedDevice interface for writing to P9813 led device.
Definition: LedDeviceP9813.h:9
The ProviderSpi implements an abstract base-class for LedDevices using the SPI-device.
Definition: ProviderSpi.h:12
LedDeviceP9813(const QJsonObject &deviceConfig)
Constructs specific LedDevice.
Definition: LedDeviceP9813.cpp:3
Plain-Old-Data structure containing the red-green-blue color specification.
Definition: ColorRgb.h:13