button trigger interrupt 20160528

Dependencies:   mbed

Fork of Nucleo_read_button_interrupt by joseph chen

Files at this revision

API Documentation at this revision

Comitter:
ittraining
Date:
Sat May 28 07:34:08 2016 +0000
Parent:
1:19e910fda737
Commit message:
test by jo

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Thu May 05 03:36:22 2016 +0000
+++ b/main.cpp	Sat May 28 07:34:08 2016 +0000
@@ -17,8 +17,8 @@
  
 int main()
 {
-   // mybutton.fall(&pressed_down);
-    mybutton.rise(&pressed_down);
+    mybutton.fall(&pressed_down);
+   // mybutton.rise(&pressed_down);
     while (1) {
         myled = !myled;
         wait(delay);