NUCLEO-F042K6 Simple demo blinking LED using ticker

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
vodsejak
Date:
Sat Feb 10 15:05:51 2018 +0000
Parent:
0:8eb6644d6308
Commit message:
v1.1

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Sat Feb 10 14:48:27 2018 +0000
+++ b/main.cpp	Sat Feb 10 15:05:51 2018 +0000
@@ -14,12 +14,12 @@
 DigitalOut LED(LED1);  // definition of digital out pin
 
 // Toggles LED
-void toggle_led() {
+void toggleLED() {
     LED = !LED;
 }
 
 int main() {
-    tick.attach(&toggle_led, 0.1); // Init the ticker with the address of the 
+    tick.attach(&toggleLED, 0.1); // Init the ticker with the address of the 
                                    // function (toggle_led) to be attached and 
                                    // the interval (100 ms)
     while (true) {