![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
Example project
Dependencies: PM2_Libary Eigen
Diff: main.cpp
- Revision:
- 44:dd746bf0e81f
- Parent:
- 42:d2d2db5974c9
- Child:
- 45:d9e6e89210f9
diff -r 0a124a21e227 -r dd746bf0e81f main.cpp --- a/main.cpp Sat May 14 13:46:55 2022 +0000 +++ b/main.cpp Sat May 14 16:07:06 2022 +0200 @@ -24,8 +24,8 @@ void user_button_pressed_fcn(); // custom functions which gets executed when user button gets pressed and released, definition below void user_button_released_fcn(); -int main() { - +int main() +{ // while loop gets executed every main_task_period_ms milliseconds const int main_task_period_ms = 10; // define main task period time in ms e.g. 50 ms -> main task runns 20 times per second Timer main_task_timer; // create Timer object which we use to run the main task every main task period time in ms