mirror of
https://github.com/anklimov/lighthub
synced 2025-12-09 05:09:49 +03:00
generic output channel and first example on SPI LED
This commit is contained in:
@@ -4,13 +4,14 @@
|
||||
class abstractCh {
|
||||
public:
|
||||
abstractCh(){};
|
||||
// virtual int Setup(int addr) = 0;
|
||||
virtual ~abstractCh(){};
|
||||
virtual int Poll() = 0;
|
||||
virtual int Setup() =0;
|
||||
virtual int Anounce () {};
|
||||
|
||||
protected:
|
||||
// Input * in;
|
||||
int publish(char* topic, long value, char* subtopic = NULL);
|
||||
int publish(char* topic, float value, char* subtopic = NULL );
|
||||
int publish(char* topic, char * value, char* subtopic = NULL);
|
||||
virtual int publishTopic(char* topic, long value, char* subtopic = NULL);
|
||||
virtual int publishTopic(char* topic, float value, char* subtopic = NULL );
|
||||
virtual int publishTopic(char* topic, char * value, char* subtopic = NULL);
|
||||
//friend Input;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user