PullDown to PullUp for KL25Z compatibility.

Fork of PinDetect by Andy K

Files at this revision

API Documentation at this revision

Comitter:
pgao
Date:
Fri Sep 26 00:42:19 2014 +0000
Parent:
2:cb3afc45028b
Commit message:
pullup instead of pulldown

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	Fri Sep 26 00:42:19 2014 +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