![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
TUK Workshop
Dependencies: mbed lib_workshop_2019
includes/console_output.h@1:7a8764e627b5, 2019-10-23 (annotated)
- Committer:
- gvaquette
- Date:
- Wed Oct 23 13:01:35 2019 +0000
- Revision:
- 1:7a8764e627b5
- Parent:
- 0:0a75a79d6b77
- Child:
- 3:a0e37b8918ac
test ULTRASONIC and COMPASS
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
gvaquette | 0:0a75a79d6b77 | 1 | #ifndef CONSOLEOUTPUT_H |
gvaquette | 0:0a75a79d6b77 | 2 | #define CONSOLEOUTPUT_H |
gvaquette | 0:0a75a79d6b77 | 3 | |
gvaquette | 0:0a75a79d6b77 | 4 | /** |
gvaquette | 0:0a75a79d6b77 | 5 | * Include : Mbed Library |
gvaquette | 0:0a75a79d6b77 | 6 | */ |
gvaquette | 0:0a75a79d6b77 | 7 | #include "mbed.h" |
gvaquette | 0:0a75a79d6b77 | 8 | |
gvaquette | 0:0a75a79d6b77 | 9 | enum e_test { |
gvaquette | 0:0a75a79d6b77 | 10 | WELCOME = 0, |
gvaquette | 0:0a75a79d6b77 | 11 | ULTRASONIC = 1, |
gvaquette | 0:0a75a79d6b77 | 12 | COMPASS = 2, |
gvaquette | 0:0a75a79d6b77 | 13 | CNY70 = 3, |
gvaquette | 0:0a75a79d6b77 | 14 | VBAT = 4, |
gvaquette | 0:0a75a79d6b77 | 15 | LEFT_MOTOR = 5, |
gvaquette | 0:0a75a79d6b77 | 16 | RIGHT_MOTOR = 6, |
gvaquette | 0:0a75a79d6b77 | 17 | PIXY = 7 |
gvaquette | 0:0a75a79d6b77 | 18 | }; |
gvaquette | 0:0a75a79d6b77 | 19 | |
gvaquette | 0:0a75a79d6b77 | 20 | |
gvaquette | 0:0a75a79d6b77 | 21 | void ft_print_test_menu(Serial &pc); |
gvaquette | 0:0a75a79d6b77 | 22 | |
gvaquette | 1:7a8764e627b5 | 23 | e_test ft_get_user_choice(Serial &pc); |
gvaquette | 0:0a75a79d6b77 | 24 | |
gvaquette | 0:0a75a79d6b77 | 25 | #endif /* CONSOLEOUTPUT_H */ |