TUK Workshop
Dependencies: mbed lib_workshop_2019
Diff: main.cpp
- Revision:
- 2:8153195b1672
- Parent:
- 1:7a8764e627b5
- Child:
- 3:a0e37b8918ac
diff -r 7a8764e627b5 -r 8153195b1672 main.cpp --- a/main.cpp Wed Oct 23 13:01:35 2019 +0000 +++ b/main.cpp Wed Oct 23 13:56:30 2019 +0000 @@ -3,6 +3,7 @@ #include "console_output.h" #include "test_us.h" #include "test_compass.h" +#include "test_cny.h" #include "pin_connexions.h" @@ -36,6 +37,22 @@ pc.printf("\n"); user_choice = ft_get_user_choice(pc); break; + + case CNY70 : + do + { + pc.printf("\r CNY_1"); + ft_print_cny_analog_voltage(CNY1, pc); + pc.printf("\t CNY_2"); + ft_print_cny_analog_voltage(CNY2, pc); + pc.printf("\t CNY_3"); + ft_print_cny_analog_voltage(CNY3, 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);