LightHub
4.6.0
Open-source smart home controller firmware
Toggle main menu visibility
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
19
class
out_dmx
:
public
colorChannel
{
20
public
:
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
31
protected
:
32
};
33
#endif
abstractout.h
colorChannel::colorChannel
colorChannel()
Default constructor.
Definition
colorchannel.h:27
itemCmd
Command + value container passed between items, drivers and MQTT.
Definition
itemCmd.h:306
out_dmx
DMX512 output driver.
Definition
out_dmx.h:19
out_dmx::Stop
int Stop() override
Marks the channel as unknown.
Definition
out_dmx.cpp:21
out_dmx::getChanType
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
out_dmx::Setup
int Setup() override
Initializes the channel state (CST_INITIALIZED).
Definition
out_dmx.cpp:13
out_dmx::PixelCtrl
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
colorchannel.h
item.h
Item (virtual channel) system of LightHub.
options.h
lighthub
modules
out_dmx.h
Generated by
1.18.0