Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
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 |
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
