hyperion.ng
LedDeviceLpd6803.h
1 #pragma once
2 
3 // Local hyperion incluse
4 #include "ProviderSpi.h"
5 
18 {
19 public:
25  LedDeviceLpd6803(const QJsonObject &deviceConfig);
26 
28  static LedDevice* construct(const QJsonObject &deviceConfig);
29 
30  virtual bool init(const QJsonObject &deviceConfig);
31 
32 private:
39  virtual int write(const std::vector<ColorRgb> &ledValues);
40 };
Interface (pure virtual base class) for LedDevices.
Definition: LedDevice.h:32
virtual bool init(const QJsonObject &deviceConfig)
Sets configuration.
Definition: LedDeviceLpd6803.cpp:14
Implementation of the LedDevice interface for writing to LDP6803 led device.
Definition: LedDeviceLpd6803.h:17
The ProviderSpi implements an abstract base-class for LedDevices using the SPI-device.
Definition: ProviderSpi.h:12
LedDeviceLpd6803(const QJsonObject &deviceConfig)
Constructs specific LedDevice.
Definition: LedDeviceLpd6803.cpp:3
static LedDevice * construct(const QJsonObject &deviceConfig)
constructs leddevice
Definition: LedDeviceLpd6803.cpp:9