![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
Tutorial for first mbed project
Dependencies: mbed lib_workshop_2019
src/console_output.cpp@3:a0e37b8918ac, 2019-10-23 (annotated)
- Committer:
- gvaquette
- Date:
- Wed Oct 23 14:01:59 2019 +0000
- Revision:
- 3:a0e37b8918ac
- Parent:
- 1:7a8764e627b5
- Child:
- 4:bf5caf4c0c88
Add print non implemented
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
gvaquette | 0:0a75a79d6b77 | 1 | #include "mbed.h" |
gvaquette | 0:0a75a79d6b77 | 2 | #include "console_output.h" |
gvaquette | 0:0a75a79d6b77 | 3 | |
gvaquette | 0:0a75a79d6b77 | 4 | void ft_print_test_menu(Serial &Pc) |
gvaquette | 0:0a75a79d6b77 | 5 | { |
gvaquette | 0:0a75a79d6b77 | 6 | Pc.printf ("\n\n\n\n\rTesting program \n\n\r Which test do you want to perform ?\n\n"); |
gvaquette | 0:0a75a79d6b77 | 7 | Pc.printf ("\r%d- Ultrasonic sensors (all of them)\n", ULTRASONIC); |
gvaquette | 0:0a75a79d6b77 | 8 | Pc.printf ("\r%d- Compass and I2C\n", COMPASS); |
gvaquette | 0:0a75a79d6b77 | 9 | Pc.printf ("\r%d- CNY70 (all of them) \n",CNY70); |
gvaquette | 0:0a75a79d6b77 | 10 | Pc.printf ("\r%d- VBAT \t! Wrong voltage !\n",VBAT); |
gvaquette | 0:0a75a79d6b77 | 11 | Pc.printf ("\r%d- Left motor\n", LEFT_MOTOR); |
gvaquette | 0:0a75a79d6b77 | 12 | Pc.printf ("\r%d- MRight motor \n", RIGHT_MOTOR); |
gvaquette | 0:0a75a79d6b77 | 13 | Pc.printf ("\r%d- PIXY (CMUCAM5)\n", PIXY); |
gvaquette | 1:7a8764e627b5 | 14 | } |
gvaquette | 1:7a8764e627b5 | 15 | |
gvaquette | 1:7a8764e627b5 | 16 | e_test ft_get_user_choice(Serial &pc) |
gvaquette | 1:7a8764e627b5 | 17 | { |
gvaquette | 1:7a8764e627b5 | 18 | e_test user_choice = (e_test) (pc.getc() -'0'); |
gvaquette | 1:7a8764e627b5 | 19 | return user_choice; |
gvaquette | 3:a0e37b8918ac | 20 | } |
gvaquette | 3:a0e37b8918ac | 21 | |
gvaquette | 3:a0e37b8918ac | 22 | void ft_print_to_be_imp(Serial &pc) |
gvaquette | 3:a0e37b8918ac | 23 | { |
gvaquette | 3:a0e37b8918ac | 24 | printf("\n\rTo be implemented\n"); |
gvaquette | 0:0a75a79d6b77 | 25 | } |