![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
Tutorial for first mbed project
Dependencies: mbed lib_workshop_2019
src/console_output.cpp
- Committer:
- gvaquette
- Date:
- 2019-10-23
- Revision:
- 1:7a8764e627b5
- Parent:
- 0:0a75a79d6b77
- Child:
- 3:a0e37b8918ac
File content as of revision 1:7a8764e627b5:
#include "mbed.h" #include "console_output.h" void ft_print_test_menu(Serial &Pc) { Pc.printf ("\n\n\n\n\rTesting program \n\n\r Which test do you want to perform ?\n\n"); Pc.printf ("\r%d- Ultrasonic sensors (all of them)\n", ULTRASONIC); Pc.printf ("\r%d- Compass and I2C\n", COMPASS); Pc.printf ("\r%d- CNY70 (all of them) \n",CNY70); Pc.printf ("\r%d- VBAT \t! Wrong voltage !\n",VBAT); 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; }