10#include <Adafruit_NeoPixel.h>
51 int PixelCtrl(
itemCmd cmd,
char* subItem=NULL,
bool show=
true,
bool authorized =
false )
override;
A single LightHub item (virtual channel).
Definition item.h:232
void link(Item *_item)
Attach to an item; retrieve and store the base address and the number of channel addresses.
Definition colorchannel.h:29
colorChannel()
Default constructor.
Definition colorchannel.h:27
Command + value container passed between items, drivers and MQTT.
Definition itemCmd.h:306
Addressable LED strip driver, SPI-like data protocol (CH_SPILED = 11).
Definition out_spiled.h:35
int8_t pin
Data pin of the strip.
Definition out_spiled.h:56
int numLeds
Number of LEDs on the strip.
Definition out_spiled.h:54
int Stop() override
Turn off the strip and free the LED buffer.
Definition out_spiled.cpp:69
void getConfig()
Read data pin, LED count and LED type from the item arguments.
Definition out_spiled.cpp:28
int ledsType
LED data order / speed flags.
Definition out_spiled.h:58
int getChanType() override
Channel type derived from the LED strip type (RGB or RGBW).
Definition out_spiled.cpp:87
int PixelCtrl(itemCmd cmd, char *subItem=NULL, bool show=true, bool authorized=false) override
Set the LED range (or the whole strip) to ON/OFF or an RGB color and show the result.
Definition out_spiled.cpp:96
void link(Item *_item)
Attach to an item and read the strip configuration.
Definition out_spiled.h:41
int Setup() override
Allocate and initialize the LED strip (FastLED / Adafruit_NeoPixel).
Definition out_spiled.cpp:43
Item (virtual channel) system of LightHub.