4 #include "ProviderSpi.h" 27 virtual bool init(
const QJsonObject &deviceConfig);
36 virtual int write(
const std::vector<ColorRgb> &ledValues);
38 const int SPI_BYTES_PER_COLOUR;
40 const int SPI_FRAME_END_LATCH_BYTES;
42 uint8_t bitpair_to_byte[4];
Interface (pure virtual base class) for LedDevices.
Definition: LedDevice.h:32
static LedDevice * construct(const QJsonObject &deviceConfig)
constructs leddevice
Definition: LedDeviceAPA104.cpp:51
The ProviderSpi implements an abstract base-class for LedDevices using the SPI-device.
Definition: ProviderSpi.h:12
Implementation of the LedDevice interface for writing to APA104 led device via spi.
Definition: LedDeviceAPA104.h:9
LedDeviceAPA104(const QJsonObject &deviceConfig)
Constructs specific LedDevice.
Definition: LedDeviceAPA104.cpp:37
virtual bool init(const QJsonObject &deviceConfig)
Sets configuration.
Definition: LedDeviceAPA104.cpp:56