InterruptIn style DigitalIn debounced with callbacks for pin state change and pin state hold.
Fork of PinDetect by
Diff: PinDetect.h
- Revision:
- 3:8e3abbd21291
- Parent:
- 2:cb3afc45028b
--- a/PinDetect.h Thu Jan 13 11:09:22 2011 +0000 +++ b/PinDetect.h Thu Jul 28 15:28:17 2016 +0000 @@ -178,7 +178,7 @@ * @param p PinName is a valid pin that supports DigitalIn */ PinDetect(PinName p) { - init( p, PullDown ); + init( p, PullDefault ); } /** PinDetect constructor