ENDLÖSUNG:)

Dependencies:   mbed

Fork of MicroMouse_MASTER_FOUR by PES2_R2D2.0

Committer:
ruesipat
Date:
Wed Mar 07 14:06:19 2018 +0000
Revision:
0:a9fe4ef404bf
Child:
1:d9e840c48b1e
hallo

Who changed what in which revision?

UserRevisionLine numberNew contents of line
ruesipat 0:a9fe4ef404bf 1 #ifndef IR_SENSOR_H_
ruesipat 0:a9fe4ef404bf 2 #define IR_SENSOR_H_
ruesipat 0:a9fe4ef404bf 3
ruesipat 0:a9fe4ef404bf 4 #include <cstdlib>
ruesipat 0:a9fe4ef404bf 5 #include <mbed.h>
ruesipat 0:a9fe4ef404bf 6
ruesipat 0:a9fe4ef404bf 7 class IRSensor
ruesipat 0:a9fe4ef404bf 8 {
ruesipat 0:a9fe4ef404bf 9
ruesipat 0:a9fe4ef404bf 10 public:
ruesipat 0:a9fe4ef404bf 11 IRSensor(AnalogIn& distance, DigitalOut& bit0, DigitalOut& bit1, DigitalOut& bit2, int number);
ruesipat 0:a9fe4ef404bf 12 virtual ~IRSensor();
ruesipat 0:a9fe4ef404bf 13 float read();
ruesipat 0:a9fe4ef404bf 14 private:
ruesipat 0:a9fe4ef404bf 15 AnalogIn& distance;
ruesipat 0:a9fe4ef404bf 16 DigitalOut& bit0;
ruesipat 0:a9fe4ef404bf 17 DigitalOut& bit1;
ruesipat 0:a9fe4ef404bf 18 DigitalOut& bit2;
ruesipat 0:a9fe4ef404bf 19 int number;
ruesipat 0:a9fe4ef404bf 20 };
ruesipat 0:a9fe4ef404bf 21
ruesipat 0:a9fe4ef404bf 22 #endif /* IR_SENSOR_H_ */