hyperion.ng
LedDeviceDMX.h
1 #pragma once
2 
3 // hyperion incluse
4 #include "ProviderRs232.h"
5 
9 class LedDeviceDMX : public ProviderRs232
10 {
11 public:
17  LedDeviceDMX(const QJsonObject &deviceConfig);
18 
20  static LedDevice* construct(const QJsonObject &deviceConfig);
21 
22  virtual bool init(const QJsonObject &deviceConfig);
23 
24 private:
31  virtual int write(const std::vector<ColorRgb> &ledValues);
32  int _dmxDeviceType = 0;
33  int _dmxStart = 1;
34  int _dmxSlotsPerLed = 3;
35  int _dmxLedCount = 0;
36  unsigned int _dmxChannelCount = 0;
37 };
Interface (pure virtual base class) for LedDevices.
Definition: LedDevice.h:32
LedDeviceDMX(const QJsonObject &deviceConfig)
Constructs specific LedDevice.
Definition: LedDeviceDMX.cpp:5
The ProviderRs232 implements an abstract base-class for LedDevices using a RS232-device.
Definition: ProviderRs232.h:14
static LedDevice * construct(const QJsonObject &deviceConfig)
constructs leddevice
Definition: LedDeviceDMX.cpp:53
Implementation of the LedDevice interface for writing to DMX512 rs232 led device. ...
Definition: LedDeviceDMX.h:9
virtual bool init(const QJsonObject &deviceConfig)
Sets configuration.
Definition: LedDeviceDMX.cpp:16