InterruptIn style DigitalIn debounced with callbacks for pin state change and pin state hold.
Fork of PinDetect by
Revision 3:e65912def820, committed 2015-09-14
- Comitter:
- emtonks
- Date:
- Mon Sep 14 02:45:57 2015 +0000
- Parent:
- 2:cb3afc45028b
- Commit message:
- text entry dev;
Changed in this revision
PinDetect.h | Show annotated file Show diff for this revision Revisions of this file |
--- a/PinDetect.h Thu Jan 13 11:09:22 2011 +0000 +++ b/PinDetect.h Mon Sep 14 02:45:57 2015 +0000 @@ -178,7 +178,7 @@ * @param p PinName is a valid pin that supports DigitalIn */ PinDetect(PinName p) { - init( p, PullDown ); + init( p, PullUp ); } /** PinDetect constructor