
TUK Workshop
Dependencies: mbed lib_workshop_2019
Revision 3:a0e37b8918ac, committed 2019-10-23
- Comitter:
- gvaquette
- Date:
- Wed Oct 23 14:01:59 2019 +0000
- Parent:
- 2:8153195b1672
- Child:
- 4:bf5caf4c0c88
- Commit message:
- Add print non implemented
Changed in this revision
--- a/includes/console_output.h Wed Oct 23 13:56:30 2019 +0000 +++ b/includes/console_output.h Wed Oct 23 14:01:59 2019 +0000 @@ -20,6 +20,8 @@ void ft_print_test_menu(Serial &pc); +void ft_print_to_be_imp(Serial &pc) + e_test ft_get_user_choice(Serial &pc); #endif /* CONSOLEOUTPUT_H */ \ No newline at end of file
--- a/main.cpp Wed Oct 23 13:56:30 2019 +0000 +++ b/main.cpp Wed Oct 23 14:01:59 2019 +0000 @@ -51,8 +51,35 @@ pc.printf("\n"); user_choice = ft_get_user_choice(pc); break; + + case VBAT : + do + { + ft_print_to_be_imp(pc); + } while (!pc.readable()); + pc.printf("\n"); + user_choice = ft_get_user_choice(pc); + break; + + case LEFT_MOTOR : + do + { + ft_print_to_be_imp(pc); + } while (!pc.readable()); + pc.printf("\n"); + user_choice = ft_get_user_choice(pc); + break; + + case RIGHT_MOTOR: + do + { + ft_print_to_be_imp(pc); + } while (!pc.readable()); + pc.printf("\n"); + user_choice = ft_get_user_choice(pc); + break; + - default : ft_print_test_menu(pc); user_choice = ft_get_user_choice(pc);
--- a/src/console_output.cpp Wed Oct 23 13:56:30 2019 +0000 +++ b/src/console_output.cpp Wed Oct 23 14:01:59 2019 +0000 @@ -17,4 +17,9 @@ { e_test user_choice = (e_test) (pc.getc() -'0'); return user_choice; +} + +void ft_print_to_be_imp(Serial &pc) +{ + printf("\n\rTo be implemented\n"); } \ No newline at end of file