hyperion.ng
LedDeviceRawHID.h
1 #pragma once
2 
3 // Qt includes
4 #include <QTimer>
5 
6 // hyperion include
7 #include "ProviderHID.h"
8 
13 {
14 
15 public:
21  LedDeviceRawHID(const QJsonObject &deviceConfig);
22 
24  static LedDevice* construct(const QJsonObject &deviceConfig);
25 
26 private slots:
28  void rewriteLeds();
29 
30 private:
37  virtual int write(const std::vector<ColorRgb> & ledValues);
38 };
Interface (pure virtual base class) for LedDevices.
Definition: LedDevice.h:32
LedDeviceRawHID(const QJsonObject &deviceConfig)
Constructs specific LedDevice.
Definition: LedDeviceRawHID.cpp:4
The ProviderHID implements an abstract base-class for LedDevices using an HID-device.
Definition: ProviderHID.h:14
Implementation of the LedDevice interface for writing to an RawHID led device.
Definition: LedDeviceRawHID.h:12
static LedDevice * construct(const QJsonObject &deviceConfig)
constructs leddevice
Definition: LedDeviceRawHID.cpp:12