mirror of
https://github.com/anklimov/lighthub
synced 2025-12-08 12:49:50 +03:00
REFACTORING st2 (still untested & uncomplete)
This commit is contained in:
@@ -1,34 +1,24 @@
|
||||
|
||||
#pragma once
|
||||
#include "options.h"
|
||||
//#ifndef DMX_DISABLE
|
||||
#ifdef XXXX
|
||||
#ifndef DMX_DISABLE
|
||||
|
||||
#include <abstractout.h>
|
||||
#include <item.h>
|
||||
|
||||
#ifdef ADAFRUIT_LED
|
||||
#include <Adafruit_NeoPixel.h>
|
||||
#else
|
||||
#include "FastLED.h"
|
||||
#endif
|
||||
|
||||
class out_dmx : public abstractOut {
|
||||
public:
|
||||
|
||||
out_dmx(Item * _item):abstractOut(_item){getConfig();};
|
||||
out_dmx(Item * _item):abstractOut(_item){};
|
||||
int Setup() override;
|
||||
int Poll(short cause) override;
|
||||
int Stop() override;
|
||||
int Status() override;
|
||||
int isActive() override;
|
||||
int getChanType() override;
|
||||
int Ctrl(itemCmd cmd, int suffixCode=0, char* subItem=NULL) override;
|
||||
int PixelCtrl(itemCmd cmd, int from =0 , int to = 1024, bool show = 1);
|
||||
int numLeds;
|
||||
int8_t pin;
|
||||
int ledsType;
|
||||
int Ctrl(itemCmd cmd, char* subItem=NULL) override;
|
||||
int PixelCtrl(itemCmd cmd);
|
||||
|
||||
protected:
|
||||
void getConfig();
|
||||
};
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user