| LightHub v4.0.0 Smarthome controller firmware

out_spiled.h
Go to the documentation of this file.
1
2 #pragma once
3 #include "options.h"
4 #include "colorchannel.h"
5 #ifndef SPILED_DISABLE
6 #include <abstractout.h>
7 #include <item.h>
8
9 #ifdef ADAFRUIT_LED
10 #include <Adafruit_NeoPixel.h>
11 #else
12 #include "FastLED.h"
13 #endif
14
15 class out_SPILed : public colorChannel {
16 public:
17
18 out_SPILed(Item * _item):colorChannel(_item){getConfig();};
19 int Setup() override;
20 int Poll(short cause) override;
21 int Stop() override;
22 int Status() override;
23 int getChanType() override;
24 //int Ctrl(short cmd, short n=0, int * Parameters=NULL, int suffixCode=0, char* subItem=NULL) override;
25 //int Ctrl(itemCmd cmd, char* subItem=NULL) override;
26 int PixelCtrl(itemCmd cmd, char* subItem=NULL, bool show=true ) override;
27 //int PixelCtrl(itemCmd cmd, int from =0 , int to = 1024, bool show = 1) override;
28 int numLeds;
29 int8_t pin;
30 int ledsType;
31 protected:
32 void getConfig();
33 };
34 #endif
out_SPILed::numLeds
int numLeds
Definition: out_spiled.h:28
itemCmd
Definition: itemCmd.h:153
out_SPILed::getChanType
int getChanType() override
Definition: out_spiled.cpp:98
out_SPILed::Setup
int Setup() override
Remove?? Now getChanType used instead.
Definition: out_spiled.cpp:44
out_SPILed::Status
int Status() override
Definition: out_spiled.cpp:86
options.h
out_SPILed
Definition: out_spiled.h:15
out_SPILed::Stop
int Stop() override
Definition: out_spiled.cpp:70
out_SPILed::out_SPILed
out_SPILed(Item *_item)
Definition: out_spiled.h:18
colorChannel
Definition: colorchannel.h:9
colorchannel.h
Item
Definition: item.h:104
abstractout.h
out_SPILed::PixelCtrl
int PixelCtrl(itemCmd cmd, char *subItem=NULL, bool show=true) override
Definition: out_spiled.cpp:107
out_SPILed::getConfig
void getConfig()
Definition: out_spiled.cpp:29
out_SPILed::ledsType
int ledsType
Definition: out_spiled.h:30
out_SPILed::pin
int8_t pin
Definition: out_spiled.h:29
out_SPILed::Poll
int Poll(short cause) override
Definition: out_spiled.cpp:93
item.h