![](/media/cache/group/default_image.jpg.50x50_q85.jpg)
Fertige Version mit geschwindigkeit 100
Dependencies: mbed
Fork of Micromouse_alpha_copy_copy by
KontrastSensor.h@1:d9e840c48b1e, 2018-03-31 (annotated)
- Committer:
- ruesipat
- Date:
- Sat Mar 31 16:45:57 2018 +0000
- Revision:
- 1:d9e840c48b1e
j
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
ruesipat | 1:d9e840c48b1e | 1 | #ifndef KONTRASTSENSOR_H_ |
ruesipat | 1:d9e840c48b1e | 2 | #define KONTRASTSENSOR_H_ |
ruesipat | 1:d9e840c48b1e | 3 | |
ruesipat | 1:d9e840c48b1e | 4 | #include <cstdlib> |
ruesipat | 1:d9e840c48b1e | 5 | #include <mbed.h> |
ruesipat | 1:d9e840c48b1e | 6 | |
ruesipat | 1:d9e840c48b1e | 7 | class KontrastSensor |
ruesipat | 1:d9e840c48b1e | 8 | { |
ruesipat | 1:d9e840c48b1e | 9 | |
ruesipat | 1:d9e840c48b1e | 10 | public: |
ruesipat | 1:d9e840c48b1e | 11 | |
ruesipat | 1:d9e840c48b1e | 12 | KontrastSensor(AnalogIn& kontrast, int& blackLine); |
ruesipat | 1:d9e840c48b1e | 13 | virtual ~KontrastSensor(); |
ruesipat | 1:d9e840c48b1e | 14 | void check(); |
ruesipat | 1:d9e840c48b1e | 15 | private: |
ruesipat | 1:d9e840c48b1e | 16 | AnalogIn& kontrast; |
ruesipat | 1:d9e840c48b1e | 17 | int& blackLine; |
ruesipat | 1:d9e840c48b1e | 18 | |
ruesipat | 1:d9e840c48b1e | 19 | }; |
ruesipat | 1:d9e840c48b1e | 20 | |
ruesipat | 1:d9e840c48b1e | 21 | #endif /* KONTRASTSENSOR_H_ */ |