![](/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
DistanceSensor.h
- Committer:
- j_j205
- Date:
- 2016-04-08
- Revision:
- 2:6ebd72287e97
- Parent:
- 1:8db052ec94f1
File content as of revision 2:6ebd72287e97:
#ifndef DISTANCE_SENSOR_H #define DISTANCE_SENSOR_H #include "mbed.h" class DistanceSensor { public: DistanceSensor(PinName ai, int profNum); double getDistance(); private: AnalogIn voltage; int prof; }; #endif