VISHAY CNY70 reflective sensor library
Dependents: FRC_2018 0hackton_08_06_18 lib_FRC_2019 lib_FRC_2019 ... more
Diff: CNY70.h
- Revision:
- 3:18466f4e1a2c
- Parent:
- 2:9dec6e856355
--- a/CNY70.h Tue May 22 17:15:44 2018 +0000 +++ b/CNY70.h Thu May 31 17:26:08 2018 +0000 @@ -61,6 +61,13 @@ */ double getVoltage (void); + /** + * Return the type of the ground (blue carpet or white stripe) + * + * @return 0 over a blue carpet, 1 over a PVC white stripe + */ + int whatAmIOn (void); + /** * A short hand of getVoltage */