Extends DigitalIn to DebounceIn to provide mechanical switch debouncing.

Dependents:   AVC_20110423 Pushbutton_NoBounce_Demo FinalTime AVC_2012 ... more

Revision:
2:31ae5cfb44a4
Parent:
1:91a2e988ba9d
--- 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) {