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 app-shield-LM75B by
main.cpp@3:4d612f16ad84, 2012-10-26 (annotated)
- Committer:
- chris
- Date:
- Fri Oct 26 21:42:06 2012 +0000
- Revision:
- 3:4d612f16ad84
- Parent:
- 2:9e757151de9b
- Child:
- 4:6df97cb10041
Removed header from main.cpp
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
okano | 0:ce7a8546502b | 1 | #include "mbed.h" |
chris | 2:9e757151de9b | 2 | #include "LM75B.h" |
chris | 2:9e757151de9b | 3 | #include "C12832_lcd.h" |
okano | 0:ce7a8546502b | 4 | |
chris | 2:9e757151de9b | 5 | C12832_LCD lcd; |
chris | 2:9e757151de9b | 6 | LM75B tmp(p28,p27); |
okano | 0:ce7a8546502b | 7 | |
chris | 2:9e757151de9b | 8 | int main () |
okano | 0:ce7a8546502b | 9 | { |
okano | 0:ce7a8546502b | 10 | |
chris | 2:9e757151de9b | 11 | while (1) { |
chris | 2:9e757151de9b | 12 | lcd.cls(); |
chris | 2:9e757151de9b | 13 | lcd.locate(0,3); |
chris | 2:9e757151de9b | 14 | lcd.printf("%.2f\n",tmp.read()); |
chris | 2:9e757151de9b | 15 | wait(1.0); |
chris | 2:9e757151de9b | 16 | } |
okano | 0:ce7a8546502b | 17 | |
okano | 0:ce7a8546502b | 18 | } |