GPYX sensor library

Fork of Sharp by UH Robotics

Committer:
j_j205
Date:
Wed Feb 17 16:48:05 2016 +0000
Revision:
2:e9ab384ccbab
Parent:
Sharp.h@1:a5ced48cfedc
2/17/16 JJ

Who changed what in which revision?

UserRevisionLine numberNew contents of line
j_j205 2:e9ab384ccbab 1 #ifndef GP2X_H
j_j205 2:e9ab384ccbab 2 #define GP2X_H
tashworth 0:04f1a022d4d0 3
tashworth 0:04f1a022d4d0 4 #include "mbed.h"
tashworth 0:04f1a022d4d0 5
j_j205 2:e9ab384ccbab 6 class Gp2x
tashworth 0:04f1a022d4d0 7 {
tashworth 0:04f1a022d4d0 8 public:
j_j205 2:e9ab384ccbab 9 Gp2x( PinName voutPin );
tashworth 1:a5ced48cfedc 10 double getIRDistance(void);
tashworth 0:04f1a022d4d0 11
tashworth 0:04f1a022d4d0 12 private:
tashworth 0:04f1a022d4d0 13 AnalogIn vout;
tashworth 0:04f1a022d4d0 14 };
tashworth 0:04f1a022d4d0 15
tashworth 0:04f1a022d4d0 16 #endif