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 Versuch20 by
Classes/IRSensorGF.h@0:b886f13e4ac6, 2018-04-22 (annotated)
- Committer:
- baumgant
- Date:
- Sun Apr 22 16:14:54 2018 +0000
- Revision:
- 0:b886f13e4ac6
- Child:
- 5:64d7b4b69fdf
Roebi
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| baumgant | 0:b886f13e4ac6 | 1 | #ifndef IR_SENSORGF_H_ |
| baumgant | 0:b886f13e4ac6 | 2 | #define IR_SENSORGF_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 IRSensorGF { |
| baumgant | 0:b886f13e4ac6 | 8 | |
| baumgant | 0:b886f13e4ac6 | 9 | public: |
| baumgant | 0:b886f13e4ac6 | 10 | IRSensorGF(AnalogIn& distance); |
| baumgant | 0:b886f13e4ac6 | 11 | |
| baumgant | 0:b886f13e4ac6 | 12 | virtual ~IRSensorGF(); |
| 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_SENSORGF_H_ */ |
