This library is push button or dipSw noise cancel and on/off edge recognition

Dependents:   led-sound_checker clockGenerator

Fork of DigitalSw by suu pen

sample program "DigitalSW_hello" https://developer.mbed.org/users/suupen/code/DigitalSW_hello/rev/ffa16c2a347f

Revision:
3:ea853fc7172d
Parent:
2:08137bac3611
Child:
4:1ae29d30a441
--- a/DigitalSw.h	Thu Oct 27 02:03:28 2016 +0000
+++ b/DigitalSw.h	Thu Oct 27 06:35:32 2016 +0000
@@ -76,7 +76,7 @@
      *  @param sw pin
      *  @note  nothing
      */
-    DigitalSw(PinName sw);
+    DigitalSw(PinName sw, PinMode pull);
 
     /**
      * Reset the edge and level.
@@ -114,6 +114,7 @@
    
     DigitalIn _sw;
 
+    PinMode _pull;
     volatile int16_t _onEdge;
     volatile int16_t _offEdge;
     volatile int16_t _levelNow;