out_spiled.h
Go to the documentation of this file.
#pragma once
#include "options.h"
#include "colorchannel.h"
#ifndef SPILED_DISABLE
#include <abstractout.h>
#include <item.h>
#ifdef ADAFRUIT_LED
#include <Adafruit_NeoPixel.h>
#else
#include "FastLED.h"
#endif
class out_SPILed : public colorChannel {
public:
out_SPILed(Item * _item):colorChannel(_item){getConfig();};
int Setup() override;
int Poll(short cause) override;
int Stop() override;
int Status() override;
int getChanType() override;
//int Ctrl(short cmd, short n=0, int * Parameters=NULL, int suffixCode=0, char* subItem=NULL) override;
//int Ctrl(itemCmd cmd, char* subItem=NULL) override;
int PixelCtrl(itemCmd cmd, char* subItem=NULL, bool show=true ) override;
//int PixelCtrl(itemCmd cmd, int from =0 , int to = 1024, bool show = 1) override;
int numLeds;
int8_t pin;
int ledsType;
protected:
void getConfig();
};
#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