![](/media/cache/group/default_image.jpg.50x50_q85.jpg)
Totale Testversion
Dependencies: mbed
Fork of DrehungMitStopp by
IRSensor.h
- Committer:
- EHess
- Date:
- 2017-05-10
- Revision:
- 1:d40ff07e2fe0
- Parent:
- 0:96f88638114b
- Child:
- 2:365bf16abbf6
File content as of revision 1:d40ff07e2fe0:
#ifndef IR_SENSOR_H #define IR_SENSOR_H #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