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

Dependencies:   mbed

Fork of programmingtest by RespiratorySensor Team

Revision:
0:5ab9f1abaf4d
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Canal.h	Sun Feb 28 15:54:13 2016 +0000
@@ -0,0 +1,19 @@
+#ifndef CANAL_H
+#define CANAL_H
+
+#include <vector>
+#include "mbed.h"
+
+
+class Canal{
+    public:
+        
+        Canal();
+        bool getState(void);
+        void setState(bool);
+    private:
+        bool state;
+        
+    };
+
+#endif
\ No newline at end of file