Binary Switch
Dependents: MutiplexedDisplaysSocketServer mltiplexed_7_segment_displays_over_ethernet mltiplexed_7_segmt_displays_ethernet Multi_7_Seg
Diff: Binary_Switch.h
- Revision:
- 0:fc59b57d2477
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/Binary_Switch.h Tue Aug 14 12:24:26 2018 +0000
@@ -0,0 +1,30 @@
+
+
+#ifndef Binary_Switch_H
+#define Binary_Switch_H
+
+#include "mbed.h"
+
+class BinarySwitch {
+ public:
+
+BinarySwitch(PinName B0,PinName B1,PinName B2,PinName B3, PinName B4,PinName B5,PinName B6,PinName B7);
+
+
+int Read_Switch_State(void);
+
+
+
+private:
+
+DigitalIn s0;
+DigitalIn s1;
+DigitalIn s2;
+DigitalIn s3;
+DigitalIn s4;
+DigitalIn s5;
+DigitalIn s6;
+DigitalIn s7;
+};
+
+#endif
\ No newline at end of file