button trigger interrupt 20160528
Fork of Nucleo_read_button_interrupt by
Revision 2:4103c09a0f63, committed 2016-05-28
- 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);