Example solution Minor Biorobotics 2016 University of Twente, Dept. of Biomechanical Engineering Homework set 2, Exercise 2.

Dependencies:   MODSERIAL mbed

Files at this revision

API Documentation at this revision

Comitter:
megrootens
Date:
Tue Sep 20 08:43:33 2016 +0000
Parent:
0:048fbd80203e
Commit message:
missing "&" in attaching Ticker

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Fri Sep 16 15:27:36 2016 +0000
+++ b/main.cpp	Tue Sep 20 08:43:33 2016 +0000
@@ -135,7 +135,7 @@
     
     // Create ticker and attach LED toggle function
     Ticker tick_toggle_led;
-    tick_toggle_led.attach(ToggleLed,kTimeLedToggle);
+    tick_toggle_led.attach(&ToggleLed,kTimeLedToggle);
     
     // Create ticker and attach Print function
     Ticker tick_print_serial;