mit pathdingsbums
Dependencies: mbed
Fork of MicroMouse_MASTER_TWO by
IRSensor.h
- Committer:
- TheDarkDurzo
- Date:
- 2018-05-16
- Revision:
- 8:1c8a747c49c8
- Parent:
- 1:d9e840c48b1e
File content as of revision 8:1c8a747c49c8:
#ifndef IR_SENSOR_H_ #define IR_SENSOR_H_ #include <cstdlib> #include <mbed.h> class IRSensor { public: IRSensor(AnalogIn& distance); virtual ~IRSensor(); float read(); private: AnalogIn& distance; }; #endif /* IR_SENSOR_H_ */