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.
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 |
diff -r 32b38fc2ecec -r 129f63c021d8 main.cpp --- 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