Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: AVC_20110423 Pushbutton_NoBounce_Demo FinalTime AVC_2012 ... more
Revision 2:31ae5cfb44a4, committed 2013-05-31
- Comitter:
- Sissors
- Date:
- Fri May 31 17:31:17 2013 +0000
- Parent:
- 1:91a2e988ba9d
- Commit message:
- Removed 'name' argument from constructor
Changed in this revision
DebounceIn.h | Show annotated file Show diff for this revision Revisions of this file |
diff -r 91a2e988ba9d -r 31ae5cfb44a4 DebounceIn.h --- 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) {