![](/media/cache/group/default_image.jpg.50x50_q85.jpg)
NUCLEO-F042K6 Simple demo with button interrupt input
Dependencies: mbed
Revision 1:129f63c021d8, committed 2018-02-17
- Comitter:
- vodsejak
- Date:
- Sat Feb 17 18:14:58 2018 +0000
- Parent:
- 0:32b38fc2ecec
- Commit message:
- v1.1; commentary update
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Sat Feb 17 18:08:17 2018 +0000 +++ b/main.cpp Sat Feb 17 18:14:58 2018 +0000 @@ -1,5 +1,12 @@ #include "mbed.h" +/******************************************************************************* + EXAMPLE DESCRIPTION + + Sets digital in on PA_0 with internal pull up. On falling edge (button press) + interrupt that toggles onboard LED is called. + +*******************************************************************************/ InterruptIn button(PA_0); // deffition of interrupt DigitalOut LED(LED1); // definition of digital out pin