GPYX sensor library
Fork of Sharp by
Diff: Gp2x.h
- Revision:
- 2:e9ab384ccbab
- Parent:
- 1:a5ced48cfedc
diff -r a5ced48cfedc -r e9ab384ccbab Gp2x.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Gp2x.h Wed Feb 17 16:48:05 2016 +0000 @@ -0,0 +1,16 @@ +#ifndef GP2X_H +#define GP2X_H + +#include "mbed.h" + +class Gp2x +{ +public: + Gp2x( PinName voutPin ); + double getIRDistance(void); + + private: + AnalogIn vout; +}; + +#endif \ No newline at end of file