hyperion.ng
LedDeviceLpd8806.h
1 #pragma once
2 
3 // Local hyperion incluse
4 #include "ProviderSpi.h"
5 
79 {
80 public:
86  LedDeviceLpd8806(const QJsonObject &deviceConfig);
87 
89  static LedDevice* construct(const QJsonObject &deviceConfig);
90 
91  virtual bool init(const QJsonObject &deviceConfig);
92 
93 private:
100  virtual int write(const std::vector<ColorRgb> &ledValues);
101 };
Interface (pure virtual base class) for LedDevices.
Definition: LedDevice.h:32
static LedDevice * construct(const QJsonObject &deviceConfig)
constructs leddevice
Definition: LedDeviceLpd8806.cpp:9
Implementation of the LedDevice interface for writing to LPD8806 led device.
Definition: LedDeviceLpd8806.h:78
The ProviderSpi implements an abstract base-class for LedDevices using the SPI-device.
Definition: ProviderSpi.h:12
LedDeviceLpd8806(const QJsonObject &deviceConfig)
Constructs specific LedDevice.
Definition: LedDeviceLpd8806.cpp:3
virtual bool init(const QJsonObject &deviceConfig)
Sets configuration.
Definition: LedDeviceLpd8806.cpp:14