Sharp IR Distance Sensor

Dependents:   NavigationTest_ NavigationTest theRobotNEW theRobot ... more

Revision:
0:04f1a022d4d0
Child:
1:a5ced48cfedc
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Sharp.h	Thu Dec 12 19:25:15 2013 +0000
@@ -0,0 +1,16 @@
+#ifndef __SHARP_H__
+#define __SHARP_H__
+
+#include "mbed.h"
+
+class Sharp
+{
+public:
+    Sharp( PinName voutPin );
+    double getDistance(void);
+           
+    private:
+        AnalogIn vout;
+};
+
+#endif
\ No newline at end of file