NUCLEO-F042K6 Simple demo with button interrupt input

Dependencies:   mbed

Files at this revision

API Documentation at this revision

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