25.04.17
Dependencies: mbed
Fork of Sensortest by
Diff: IRSensor.h
- Revision:
- 1:82a1ebe6ce11
- Parent:
- 0:fb3f7c677c18
diff -r fb3f7c677c18 -r 82a1ebe6ce11 IRSensor.h --- a/IRSensor.h Thu Apr 13 08:30:35 2017 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,26 +0,0 @@ -#ifndef IR_SENSOR_H -#define IR_SENSOR_H - -#include <cstdlib> //-> Nötig? -#include "mbed.h" - -//E. Hess -//IRSensor.h - -class IRSensor { - public: - IRSensor(); - IRSensor(AnalogIn* distance, DigitalOut* bit0, DigitalOut* bit1, DigitalOut* bit2, int number); - ~IRSensor(); - void init(AnalogIn* distance, DigitalOut* bit0, DigitalOut* bit1, DigitalOut* bit2, int number); - float read(); - - private: - AnalogIn* distance; - DigitalOut* bit0; - DigitalOut* bit1; - DigitalOut* bit2; - int number; -}; - -#endif \ No newline at end of file