Teacher version
Dependencies: mbed lib_workshop_2019
Diff: src/console_output.cpp
- Revision:
- 1:7a8764e627b5
- Parent:
- 0:0a75a79d6b77
- Child:
- 3:a0e37b8918ac
diff -r 0a75a79d6b77 -r 7a8764e627b5 src/console_output.cpp --- a/src/console_output.cpp Wed Oct 23 12:16:18 2019 +0000 +++ b/src/console_output.cpp Wed Oct 23 13:01:35 2019 +0000 @@ -11,4 +11,10 @@ Pc.printf ("\r%d- Left motor\n", LEFT_MOTOR); Pc.printf ("\r%d- MRight motor \n", RIGHT_MOTOR); Pc.printf ("\r%d- PIXY (CMUCAM5)\n", PIXY); +} + +e_test ft_get_user_choice(Serial &pc) +{ + e_test user_choice = (e_test) (pc.getc() -'0'); + return user_choice; } \ No newline at end of file