Helvijs Kiselis
/
MicromousePES2
main.cpp: Sensoren einlesen und Motoren ansteuern
IRSensor.h
- Committer:
- Helvis
- Date:
- 2018-04-09
- Revision:
- 0:9a3e7847a4be
- Child:
- 5:47262622a9bf
File content as of revision 0:9a3e7847a4be:
#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 */