generic output channel and first example on SPI LED

This commit is contained in:
2019-07-19 01:11:48 +03:00
parent 5c4b1512bb
commit a24e56e941
12 changed files with 179 additions and 51 deletions

View File

@@ -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;
};