VISHAY CNY70 reflective sensor library
Dependents: FRC_2018 0hackton_08_06_18 lib_FRC_2019 lib_FRC_2019 ... more
Diff: CNY70.h
- Revision:
- 2:9dec6e856355
- Parent:
- 1:95219d950eeb
- Child:
- 3:18466f4e1a2c
--- a/CNY70.h Mon May 21 16:13:34 2018 +0000 +++ b/CNY70.h Tue May 22 17:15:44 2018 +0000 @@ -35,28 +35,29 @@ #define CNY70_H /** - * Includes + * Includes : Mbed Library */ #include "mbed.h" /** - * CNY70 Sensor + * CNY70 Optical Reflective Sensor. + * More info : https://www.vishay.com/docs/83751/cny70.pdf */ class CNY70 { public : /** - * Constructor. + * Constructor of a CNY70 object. * - * @param vmes is the Mbed pin used to connect with CNY70 sensor + * @param vmes : the Mbed pin used to connect with CNY70 sensor */ CNY70(PinName vmes); /** * Return the voltage on the CNY70 output pin * - * @return : a voltage between 0 and 3.3V + * @return Voltage between 0 and 3.3V */ double getVoltage (void);