workshop 1

Dependencies:   PM2_Libary Eigen

Fork of PM2_Example_Summer_School by Kate Huelskamp

Revision:
26:28693b369945
Parent:
25:ea1d6e27c895
Child:
27:0772a14369ce
--- a/main.cpp	Mon Mar 14 14:34:36 2022 +0000
+++ b/main.cpp	Wed Mar 16 10:06:21 2022 +0000
@@ -78,7 +78,6 @@
     user_button.rise(&user_button_released_fcn);
 
     // start timers
-    user_button_timer.start();
     main_task_timer.start();
 
     // set pullup mode: add resistor between pin and 3.3 V, so that there is a defined potential
@@ -177,6 +176,7 @@
 
 void user_button_pressed_fcn()
 {
+    user_button_timer.start();
     user_button_timer.reset();
 }