NUCLEO-F042K6 Simple demo with button interrupt input
Dependencies: mbed
Diff: main.cpp
- Revision:
- 1:129f63c021d8
- Parent:
- 0:32b38fc2ecec
--- 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