| LightHub v4.0.0 Smarthome controller firmware

out_pwm.h
Go to the documentation of this file.
1
2 #pragma once
3 #include "options.h"
4 #ifndef PWM_DISABLE
5
6 #include <abstractout.h>
7 #include <item.h>
8 #include "colorchannel.h"
9
10 class out_pwm : public colorChannel {
11 public:
12
13 out_pwm(Item * _item):colorChannel(_item){};
14 int Setup() override;
15 int Poll(short cause) override;
16 int Stop() override;
17 int Status() override;
18
19 int getChanType() override;
20 //int Ctrl(itemCmd cmd, char* subItem=NULL) override;
21 int PixelCtrl(itemCmd cmd, char* subItem=NULL, bool show=true ) override;
22
23 protected:
24 short numChannels;
25 };
26 #endif
out_pwm
Definition: out_pwm.h:10
out_pwm::Stop
int Stop() override
Definition: out_pwm.cpp:62
itemCmd
Definition: itemCmd.h:153
out_pwm::Poll
int Poll(short cause) override
Definition: out_pwm.cpp:89
out_pwm::getChanType
int getChanType() override
Definition: out_pwm.cpp:94
out_pwm::Setup
int Setup() override
Remove?? Now getChanType used instead.
Definition: out_pwm.cpp:20
out_pwm::Status
int Status() override
Definition: out_pwm.cpp:82
out_pwm::PixelCtrl
int PixelCtrl(itemCmd cmd, char *subItem=NULL, bool show=true) override
Definition: out_pwm.cpp:121
out_pwm::out_pwm
out_pwm(Item *_item)
Definition: out_pwm.h:13
options.h
colorChannel
Definition: colorchannel.h:9
colorchannel.h
Item
Definition: item.h:104
out_pwm::numChannels
short numChannels
Definition: out_pwm.h:24
abstractout.h
item.h