hyperion.ng
LedDeviceAdalight.h
1 #pragma once
2 
3 #include "ProviderRs232.h"
4 
9 {
10  Q_OBJECT
11 
12 public:
18  LedDeviceAdalight(const QJsonObject &deviceConfig);
19 
21  static LedDevice* construct(const QJsonObject &deviceConfig);
22 
23  virtual bool init(const QJsonObject &deviceConfig);
24 
25 public slots:
26  void receivedData(QByteArray data);
27 
28 private:
35  virtual int write(const std::vector<ColorRgb> & ledValues);
36 
37  const short _headerSize;
38  bool _ligthBerryAPA102Mode;
39 };
40 
LedDeviceAdalight(const QJsonObject &deviceConfig)
Constructs specific LedDevice.
Definition: LedDeviceAdalight.cpp:3
virtual bool init(const QJsonObject &deviceConfig)
Sets configuration.
Definition: LedDeviceAdalight.cpp:17
Interface (pure virtual base class) for LedDevices.
Definition: LedDevice.h:32
static LedDevice * construct(const QJsonObject &deviceConfig)
constructs leddevice
Definition: LedDeviceAdalight.cpp:12
The ProviderRs232 implements an abstract base-class for LedDevices using a RS232-device.
Definition: ProviderRs232.h:14
Implementation of the LedDevice interface for writing to an Adalight led device.
Definition: LedDeviceAdalight.h:8