Sharp IR Distance Sensor

Dependents:   NavigationTest_ NavigationTest theRobotNEW theRobot ... more

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers Sharp.h Source File

Sharp.h

00001 #ifndef __SHARP_H__
00002 #define __SHARP_H__
00003 
00004 #include "mbed.h"
00005 
00006 class Sharp
00007 {
00008 public:
00009     Sharp( PinName voutPin );
00010     double getIRDistance(void);
00011            
00012     private:
00013         AnalogIn vout;
00014 };
00015 
00016 #endif