This library is togle sw on/off edge and level decision. input sw level noise and chatting cancel. MDX-20 controler用

Fork of DigitalSw by suu pen

Revision:
2:08137bac3611
Parent:
1:cd8bb4f0b08d
Child:
3:ea853fc7172d
--- a/DigitalSw.h	Sun Oct 23 09:46:01 2016 +0000
+++ b/DigitalSw.h	Thu Oct 27 02:03:28 2016 +0000
@@ -108,11 +108,11 @@
 
 private:
 
-    void swLevelUp(void);
-    void swLevelDown(void);
+    void swCheck(void);
 
-
-    InterruptIn _sw;
+    Ticker _swCheckPeriod;
+   
+    DigitalIn _sw;
 
     volatile int16_t _onEdge;
     volatile int16_t _offEdge;