Changed default PinMode from PullDown to PullDefault for compatibility with KL25Z

Dependents:   ChordJoy idd_hw2_andrewhead_chordjoy idd_hw2_kevinlee_typinglove idd_hw2_kevinlee_typinglove ... more

Fork of PinDetect by Andy K

Revision:
3:2cc013fd659d
Parent:
2:cb3afc45028b
Child:
4:4f11ae3737c7
diff -r cb3afc45028b -r 2cc013fd659d PinDetect.h
--- a/PinDetect.h	Thu Jan 13 11:09:22 2011 +0000
+++ b/PinDetect.h	Mon Aug 04 22:50:38 2014 +0000
@@ -172,13 +172,13 @@
 
     /** PinDetect constructor
      *
-     * By default the PinMode is set to PullDown.
+     * By default the PinMode is set to PullDefault.
      *
      * @see http://mbed.org/handbook/DigitalIn
      * @param p PinName is a valid pin that supports DigitalIn
      */    
     PinDetect(PinName p) {
-        init( p, PullDown );
+        init( p, PullDefault );
     }
 
     /** PinDetect constructor