![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
Tutorial for first mbed project
Dependencies: mbed lib_workshop_2019
src/test_cny/ft_print_value_cny.cpp
- Committer:
- gvaquette
- Date:
- 2019-10-23
- Revision:
- 2:8153195b1672
- Child:
- 7:c7ff04228b11
File content as of revision 2:8153195b1672:
/** * @author geoffrey Vaquette * * @section DESCRIPTION * * Testing value from ultrasonic sensors on robot * */ #include "mbed.h" #include "CNY70.h" void ft_print_cny_analog_voltage(AnalogIn &analog_input, Serial &pc) { /* TO BE IMPLEMENTED */ const double max_voltage = 3.3; double value = analog_input.read(); double voltage = value * max_voltage; pc.printf("voltage value : %lf V ", voltage); return; } void ft_print_cny_library_voltage(CNY70 &cny_sensor, Serial &pc) { /* TO BE COMPUTED */ return; }