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:9219bf515563, 2014-04-01 (annotated)
- Committer:
- screamer
- Date:
- Tue Apr 01 15:37:06 2014 +0000
- Revision:
- 0:9219bf515563
- Child:
- 2:a167c8f6f859
Initial commit
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| screamer | 0:9219bf515563 | 1 | #include "mbed.h" |
| screamer | 0:9219bf515563 | 2 | #include "TMP102.h" |
| screamer | 0:9219bf515563 | 3 | |
| screamer | 0:9219bf515563 | 4 | TMP102 temperature(D14, D15, 0x90); |
| screamer | 0:9219bf515563 | 5 | Serial pc(USBTX, USBRX); |
| screamer | 0:9219bf515563 | 6 | |
| screamer | 0:9219bf515563 | 7 | int main() |
| screamer | 0:9219bf515563 | 8 | { |
| screamer | 0:9219bf515563 | 9 | pc.printf("mbed application board!\r\n"); |
| screamer | 0:9219bf515563 | 10 | wait(3); |
| screamer | 0:9219bf515563 | 11 | |
| screamer | 0:9219bf515563 | 12 | int i=1; |
| screamer | 0:9219bf515563 | 13 | while(i++) { |
| screamer | 0:9219bf515563 | 14 | pc.printf("temp: %f\r", temperature.read()); |
| screamer | 0:9219bf515563 | 15 | wait(0.2); |
| screamer | 0:9219bf515563 | 16 | } |
| screamer | 0:9219bf515563 | 17 | } |