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.
Fork of DebouncedIn by
Revision 4:e88ec98d2b7e, committed 2014-10-16
- Comitter:
- faucherb94
- Date:
- Thu Oct 16 17:24:35 2014 +0000
- Parent:
- 3:41d314732786
- Commit message:
- Updated documentation
Changed in this revision
| DebouncedIn.cpp | Show annotated file Show diff for this revision Revisions of this file |
| DebouncedIn.h | Show annotated file Show diff for this revision Revisions of this file |
diff -r 41d314732786 -r e88ec98d2b7e DebouncedIn.cpp --- a/DebouncedIn.cpp Thu Oct 09 20:03:47 2014 +0000 +++ b/DebouncedIn.cpp Thu Oct 16 17:24:35 2014 +0000 @@ -1,4 +1,4 @@ -/** +/* * DebouncedIn class version 1.0 * Created by Andres Moya Bedoya, updated by Ben Faucher */
diff -r 41d314732786 -r e88ec98d2b7e DebouncedIn.h
--- a/DebouncedIn.h Thu Oct 09 20:03:47 2014 +0000
+++ b/DebouncedIn.h Thu Oct 16 17:24:35 2014 +0000
@@ -17,9 +17,14 @@
/** Create a DebouncedIn connected to the specified pin
*
* @param in DigitalIn pin to connect to
+ */
+ DebouncedIn(PinName in);
+
+ /** Same as before, with option to specify pin mode
+ *
+ * @param in DigitalIn pin to connect to
* @param mode (optional) Set pull mode - PullUp, PullDown, PullNone, OpenDrain
*/
- DebouncedIn(PinName in);
DebouncedIn(PinName in, PinMode mode);
/** Read the input state, represented as 0 or 1 (int)
