Basic library for Pololu's Sharp GP2Y0A51SK0F
Dependencies: mbed
Dependents: GrabTest R5 2016 Robotics Team 1
DistanceSensor.h
- Committer:
- Hypna
- Date:
- 2016-04-07
- Revision:
- 1:8db052ec94f1
- Parent:
- 0:d03df6dd14d6
File content as of revision 1:8db052ec94f1:
#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