GPYX sensor library
Fork of Sharp by
Sharp.h@1:a5ced48cfedc, 2014-03-28 (annotated)
- Committer:
- tashworth
- Date:
- Fri Mar 28 15:31:40 2014 +0000
- Revision:
- 1:a5ced48cfedc
- Parent:
- 0:04f1a022d4d0
3-28-14 10:30AM
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
tashworth | 0:04f1a022d4d0 | 1 | #ifndef __SHARP_H__ |
tashworth | 0:04f1a022d4d0 | 2 | #define __SHARP_H__ |
tashworth | 0:04f1a022d4d0 | 3 | |
tashworth | 0:04f1a022d4d0 | 4 | #include "mbed.h" |
tashworth | 0:04f1a022d4d0 | 5 | |
tashworth | 0:04f1a022d4d0 | 6 | class Sharp |
tashworth | 0:04f1a022d4d0 | 7 | { |
tashworth | 0:04f1a022d4d0 | 8 | public: |
tashworth | 0:04f1a022d4d0 | 9 | Sharp( 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 |