ok joy center pin 14 pullup code had to be turned off - why?
Fork of Pushbutton_Debounce_Interrupt by
Revision 1:d5bb7a2e46c2, committed 2014-02-15
- 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 |
--- 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