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.
QRE1113.h@0:85ca689387fb, 2014-03-24 (annotated)
- Committer:
- schakkedath3
- Date:
- Mon Mar 24 14:53:00 2014 +0000
- Revision:
- 0:85ca689387fb
- Child:
- 1:4909e0967939
This is the library for the IR Reflector QRE1113
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| schakkedath3 | 0:85ca689387fb | 1 | #include "mbed.h" |
| schakkedath3 | 0:85ca689387fb | 2 | |
| schakkedath3 | 0:85ca689387fb | 3 | |
| schakkedath3 | 0:85ca689387fb | 4 | //Function to read the Analog voltage |
| schakkedath3 | 0:85ca689387fb | 5 | float IRRead(PinName Pin) |
| schakkedath3 | 0:85ca689387fb | 6 | { |
| schakkedath3 | 0:85ca689387fb | 7 | AnalogIn AIn(Pin); |
| schakkedath3 | 0:85ca689387fb | 8 | float IRIn; |
| schakkedath3 | 0:85ca689387fb | 9 | IRIn=AIn; |
| schakkedath3 | 0:85ca689387fb | 10 | //IRIn=a; |
| schakkedath3 | 0:85ca689387fb | 11 | return(IRIn); |
| schakkedath3 | 0:85ca689387fb | 12 | |
| schakkedath3 | 0:85ca689387fb | 13 | }; |
| schakkedath3 | 0:85ca689387fb | 14 |