LimitSwitches

Revision:
0:a298c2462f4f
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/LimitSwitches.h	Tue Jun 04 17:00:17 2019 +0000
@@ -0,0 +1,21 @@
+#ifndef MBED_LIMITSWITCHES_H
+#define MBED_LIMITSWITCHES_H
+ 
+#include "mbed.h"
+ 
+class SWITCHES {
+public:
+    SWITCHES(PinName S1, PinName S2) ;
+
+    int  Read();
+    void InterruptEnable();
+    void InterruptDisable();
+  
+private:  
+    InterruptIn  Switch1;
+    InterruptIn  Switch2;
+};
+ 
+#endif
+ 
+ 
\ No newline at end of file