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.
main.cpp@0:89f745be63a8, 2012-04-19 (annotated)
- Committer:
- chris
- Date:
- Thu Apr 19 10:17:56 2012 +0000
- Revision:
- 0:89f745be63a8
- Child:
- 1:9b49379e8bf6
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| chris | 0:89f745be63a8 | 1 | #include "mbed.h" |
| chris | 0:89f745be63a8 | 2 | |
| chris | 0:89f745be63a8 | 3 | #include "TMP102.h" |
| chris | 0:89f745be63a8 | 4 | |
| chris | 0:89f745be63a8 | 5 | TMP102 temperature(p9, p10, 0x90); //A0 pin is connected to ground |
| chris | 0:89f745be63a8 | 6 | |
| chris | 0:89f745be63a8 | 7 | int main() |
| chris | 0:89f745be63a8 | 8 | { |
| chris | 0:89f745be63a8 | 9 | printf("Temperature: %f\n", temperature.read()); |
| chris | 0:89f745be63a8 | 10 | return 0; |
| chris | 0:89f745be63a8 | 11 | } |
TMP102 Temperature Sensor