hyperion.ng
LedDeviceWs2801.h
1 #pragma once
2 
3 #include "ProviderSpi.h"
4 
9 {
10 public:
16  LedDeviceWs2801(const QJsonObject &deviceConfig);
17 
19  static LedDevice* construct(const QJsonObject &deviceConfig);
20 
21 protected:
28  virtual int write(const std::vector<ColorRgb> &ledValues);
29 };
static LedDevice * construct(const QJsonObject &deviceConfig)
constructs leddevice
Definition: LedDeviceWs2801.cpp:9
Interface (pure virtual base class) for LedDevices.
Definition: LedDevice.h:32
virtual int write(const std::vector< ColorRgb > &ledValues)
Writes the led color values to the led-device.
Definition: LedDeviceWs2801.cpp:14
LedDeviceWs2801(const QJsonObject &deviceConfig)
Constructs specific LedDevice.
Definition: LedDeviceWs2801.cpp:3
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 Ws2801 led device.
Definition: LedDeviceWs2801.h:8