mirror of
https://github.com/anklimov/lighthub
synced 2025-12-06 11:49:51 +03:00
20 lines
619 B
C++
20 lines
619 B
C++
#pragma once
|
|
#include "Arduino.h"
|
|
#include "abstractch.h"
|
|
#include "itemCmd.h"
|
|
|
|
class Item;
|
|
class chPersistent {};
|
|
class abstractOut : public abstractCh{
|
|
public:
|
|
abstractOut(Item * _item):abstractCh(){item=_item;};
|
|
virtual int Ctrl(itemCmd cmd, char* subItem=NULL, bool toExecute=true) =0;
|
|
virtual int isActive();
|
|
virtual itemCmd getDefaultOnVal(){return itemCmd().Percents255(255);};
|
|
virtual int getChanType(){return 0;}
|
|
virtual int getDefaultStorageType(){return ST_PERCENTS255;} /// Remove?? Now getChanType used instead
|
|
int Setup() override;
|
|
protected:
|
|
Item * item;
|
|
};
|