Applied engineering Team / Mbed 2 deprecated VT1_Herek

Dependencies:   mbed

Revision:
2:928931868ac8
Parent:
1:bf24c62c6310
--- a/main.cpp	Thu Nov 10 19:02:42 2016 +0000
+++ b/main.cpp	Thu Nov 10 19:04:33 2016 +0000
@@ -2,9 +2,11 @@
 InterruptIn button(p18); // Interrupt on digital pushbutton input p18
 DigitalOut led1(p5); // digital out to p5
 void toggle(void); // function prototype
-int main() {
-button.rise(&toggle); // attach the address of the toggle
+int main()
+{
+    button.rise(&toggle); // attach the address of the toggle
 } // function to the rising edge
-void toggle() {
-led1=!led1;
+void toggle()
+{
+    led1=!led1;
 }
\ No newline at end of file