Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of Versuch21 by
Classes/IRSensorZ.h@0:b886f13e4ac6, 2018-04-22 (annotated)
- Committer:
- baumgant
- Date:
- Sun Apr 22 16:14:54 2018 +0000
- Revision:
- 0:b886f13e4ac6
Roebi
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| baumgant | 0:b886f13e4ac6 | 1 | #ifndef IR_SENSORZ_H_ |
| baumgant | 0:b886f13e4ac6 | 2 | #define IR_SENSORZ_H_ |
| baumgant | 0:b886f13e4ac6 | 3 | |
| baumgant | 0:b886f13e4ac6 | 4 | #include <cstdlib> |
| baumgant | 0:b886f13e4ac6 | 5 | #include <mbed.h> |
| baumgant | 0:b886f13e4ac6 | 6 | |
| baumgant | 0:b886f13e4ac6 | 7 | class IRSensorZ { |
| baumgant | 0:b886f13e4ac6 | 8 | |
| baumgant | 0:b886f13e4ac6 | 9 | public: |
| baumgant | 0:b886f13e4ac6 | 10 | IRSensorZ(AnalogIn& distance); |
| baumgant | 0:b886f13e4ac6 | 11 | |
| baumgant | 0:b886f13e4ac6 | 12 | virtual ~IRSensorZ(); |
| baumgant | 0:b886f13e4ac6 | 13 | int read(); |
| baumgant | 0:b886f13e4ac6 | 14 | |
| baumgant | 0:b886f13e4ac6 | 15 | private: |
| baumgant | 0:b886f13e4ac6 | 16 | AnalogIn& distance; |
| baumgant | 0:b886f13e4ac6 | 17 | |
| baumgant | 0:b886f13e4ac6 | 18 | }; |
| baumgant | 0:b886f13e4ac6 | 19 | |
| baumgant | 0:b886f13e4ac6 | 20 | #endif /* IR_SENSORZ_H_ */ |
