Test for PinDetect library. Use constant "#define DIRECTINT" to compile two different versions of the program comparing the status registers related to the interrupt states when using the PinDetect Libraries vs the InterruptIn library.

Dependencies:   C12832_lcd PinDetect mbed

Fork of Bootcamp-Pushbutton_Debounce_Interrupt by avnish aggarwal

Revision:
1:d5bb7a2e46c2
Parent:
0:cc87c48aa43c
Child:
2:aca93337a0e1
--- 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