4 #include "ProviderUdp.h" 16 #define ArtNet_DEFAULT_PORT 5568 18 #define DMX_MAX 512 // 512 usable slots 32 uint8_t Data[ DMX_MAX ];
33 } __attribute__((packed));
35 uint8_t raw[ 18 + DMX_MAX ];
57 bool init(
const QJsonObject &deviceConfig);
70 virtual int write(
const std::vector<ColorRgb> &ledValues);
72 void prepare(
const unsigned this_universe,
const unsigned this_sequence,
const unsigned this_dmxChannelCount);
76 uint8_t _artnet_seq = 1;
77 uint8_t _artnet_channelsPerFixture = 3;
78 unsigned _artnet_universe = 1;
The ProviderUdp implements an abstract base-class for LedDevices using UDP packets.
Definition: ProviderUdp.h:15
Interface (pure virtual base class) for LedDevices.
Definition: LedDevice.h:32
bool init(const QJsonObject &deviceConfig)
Sets configuration.
Definition: LedDeviceUdpArtNet.cpp:13
Definition: LedDeviceUdpArtNet.h:21
Implementation of the LedDevice interface for sending led colors via udp/E1.31 packets.
Definition: LedDeviceUdpArtNet.h:42
static LedDevice * construct(const QJsonObject &deviceConfig)
constructs leddevice
Definition: LedDeviceUdpArtNet.cpp:23
LedDeviceUdpArtNet(const QJsonObject &deviceConfig)
Constructs specific LedDevice.
Definition: LedDeviceUdpArtNet.cpp:7