Extends DigitalIn to DebounceIn to provide mechanical switch debouncing. Fork of original https://os.mbed.com/users/AjK/code/DebounceIn/ and modification for compatibility under MbedOS6+

Revision:
2:31ae5cfb44a4
Parent:
1:91a2e988ba9d
Child:
3:f58cd7168693
--- a/DebounceIn.h	Thu Jan 13 09:52:32 2011 +0000
+++ b/DebounceIn.h	Fri May 31 17:31:17 2013 +0000
@@ -92,7 +92,7 @@
          * 
          * @param PinName pin The pin to assign as an input.
          */
-        DebounceIn(PinName pin, const char *name = NULL) : DigitalIn(pin, name) { _counter = 0; _samples = 10; set_debounce_us(1000); };
+        DebounceIn(PinName pin) : DigitalIn(pin) { _counter = 0; _samples = 10; set_debounce_us(1000); };
         
     protected:
         void _callback(void) {