VISHAY CNY70 reflective sensor library
Dependents: FRC_2018 0hackton_08_06_18 lib_FRC_2019 lib_FRC_2019 ... more
Diff: CNY70.h
- Revision:
- 1:95219d950eeb
- Parent:
- 0:94ce69cee360
- Child:
- 2:9dec6e856355
diff -r 94ce69cee360 -r 95219d950eeb CNY70.h --- a/CNY70.h Fri May 18 16:44:30 2018 +0000 +++ b/CNY70.h Mon May 21 16:13:34 2018 +0000 @@ -58,7 +58,13 @@ * * @return : a voltage between 0 and 3.3V */ - float getVoltage (void); + double getVoltage (void); + + /** + * A short hand of getVoltage + */ + operator double(); + protected :