ok joy center pin 14 pullup code had to be turned off - why?

Dependencies:   PinDetect mbed

Fork of Pushbutton_Debounce_Interrupt by jim hamblen

Files at this revision

API Documentation at this revision

Comitter:
avnisha
Date:
Sat Feb 15 07:24:47 2014 +0000
Parent:
0:cc87c48aa43c
Commit message:
ok

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r cc87c48aa43c -r d5bb7a2e46c2 main.cpp
--- a/main.cpp	Tue Sep 20 14:06:28 2011 +0000
+++ b/main.cpp	Sat Feb 15 07:24:47 2014 +0000
@@ -8,7 +8,7 @@
 DigitalOut myled3(LED3);
 DigitalOut myled4(LED4);
 
-PinDetect pb(p8);
+PinDetect pb(p14);                  // center of joystick
 // SPST Pushbutton debounced count demo using interrupts and callback
 // no external PullUp resistor needed
 // Pushbutton from P8 to GND.
@@ -28,7 +28,7 @@
 int main() {
 
     // Use internal pullup for pushbutton
-    pb.mode(PullUp);
+    //pb.mode(PullUp);                              // don't do this for app board
     // Delay for initial pullup to take effect
     wait(.01);
     // Setup Interrupt callback function for a pb hit