LightHub 4.6.0
Open-source smart home controller firmware
Loading...
Searching...
No Matches
out_dmx.h
Go to the documentation of this file.
1
2#pragma once
3#include "options.h"
4#ifndef DMX_DISABLE
5
6#include <abstractout.h>
7#include <item.h>
8#include "colorchannel.h"
9
19class out_dmx : public colorChannel {
20public:
22 int Setup() override;
24 int Stop() override;
25
27 int getChanType() override;
29 virtual int PixelCtrl(itemCmd cmd, char* subItem=NULL, bool show=true, bool authorized = false) override;
30
31protected:
32};
33#endif
colorChannel()
Default constructor.
Definition colorchannel.h:27
Command + value container passed between items, drivers and MQTT.
Definition itemCmd.h:306
DMX512 output driver.
Definition out_dmx.h:19
int Stop() override
Marks the channel as unknown.
Definition out_dmx.cpp:21
int getChanType() override
Returns CH_RGB / CH_RGBW / CH_RGBWW based on the number of configured channels (otherwise the item ty...
Definition out_dmx.cpp:28
int Setup() override
Initializes the channel state (CST_INITIALIZED).
Definition out_dmx.cpp:13
virtual int PixelCtrl(itemCmd cmd, char *subItem=NULL, bool show=true, bool authorized=false) override
Writes the command value to the DMX channels: single-channel dimmer percents, or RGB/RGBW/RGBWW color...
Definition out_dmx.cpp:48
Item (virtual channel) system of LightHub.