![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
Tuk tutoriail
Dependencies: mbed lib_workshop_2019
Diff: src/test_cny/ft_print_value_cny.cpp
- Revision:
- 10:2c17068cb551
- Parent:
- 7:c7ff04228b11
diff -r 19255172362f -r 2c17068cb551 src/test_cny/ft_print_value_cny.cpp --- a/src/test_cny/ft_print_value_cny.cpp Mon Oct 28 05:29:08 2019 +0000 +++ b/src/test_cny/ft_print_value_cny.cpp Mon Oct 28 09:19:57 2019 +0000 @@ -15,7 +15,12 @@ { const double max_voltage = 3.3; /* TO BE IMPLEMENTED */ - + double value; + double voltage; + value=analog_input.read(); + voltage=value * max_voltage; + + pc.printf("Voltage value : %lf ", voltage); return; }