Ticker added

Dependencies:   HIDScope MODSERIAL QEI mbed

Fork of Tau_new_ticker_toevoegen by V D

Revision:
6:d8c4c54e1077
Parent:
5:9b5ab304fe64
Child:
7:05bef8a64a44
diff -r 9b5ab304fe64 -r d8c4c54e1077 main.cpp
--- a/main.cpp	Thu Nov 02 09:09:28 2017 +0000
+++ b/main.cpp	Thu Nov 02 09:14:01 2017 +0000
@@ -52,6 +52,8 @@
 // Roll function
 void Roll()
 { 
+    tick.attach(&Send, f);
+    
     // Show rolling state through leds
     ledg = 1; // green led off
     ledb = 1; // blue led off
@@ -85,7 +87,7 @@
     {
         Roll();
     }
-    tick.attach(&Send, f);
+    
 
     // Perform main continuously
     while(true) {}