This is an alternative way to control which channel is active. is saves only the channels that are active in a vector.

Dependencies:   mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers Canal.h Source File

Canal.h

00001 #ifndef CANAL_H
00002 #define CANAL_H
00003 
00004 #include <vector>
00005 #include "mbed.h"
00006 
00007 
00008 class Canal{
00009     public:
00010         
00011         Canal();
00012         bool getState(void);
00013         void setState(bool);
00014     private:
00015         bool state;
00016         
00017     };
00018 
00019 #endif