Helvijs Kiselis
/
MicromousePES2
main.cpp: Sensoren einlesen und Motoren ansteuern
Diff: IRSensor.h
- Revision:
- 0:9a3e7847a4be
- Child:
- 5:47262622a9bf
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/IRSensor.h Mon Apr 09 19:26:46 2018 +0000 @@ -0,0 +1,19 @@ +#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 */ + \ No newline at end of file