![](/media/cache/group/default_image.jpg.50x50_q85.jpg)
Basic library for Pololu's Sharp GP2Y0A51SK0F
Dependencies: mbed
Dependents: GrabTest R5 2016 Robotics Team 1
Diff: DistanceSensor.h
- Revision:
- 0:d03df6dd14d6
- Child:
- 1:8db052ec94f1
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/DistanceSensor.h Wed Apr 06 23:02:33 2016 +0000 @@ -0,0 +1,16 @@ +#ifndef DISTANCE_SENSOR_H +#define DISTANCE_SENSOR_H + +#include "mbed.h" + +class DistanceSensor +{ + public: + DistanceSensor(PinName ai); + float getDistance(); + + private: + AnalogIn voltage; +}; + +#endif \ No newline at end of file