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.
Dependencies: C12832 LM75B mbed
Fork of app-board-LM75B by
main.cpp@8:e0f3f151c3cc, 2014-08-01 (annotated)
- Committer:
- chris
- Date:
- Fri Aug 01 14:29:15 2014 +0000
- Revision:
- 8:e0f3f151c3cc
- Parent:
- 7:80852d9feb4b
Updates LM75 and mbed library versions
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 | 5:608f2bf4d3f7 | 3 | #include "C12832.h" |
| okano | 0:ce7a8546502b | 4 | |
| chris | 6:bb84f3ab523d | 5 | // Using Arduino pin notation |
| chris | 6:bb84f3ab523d | 6 | C12832 lcd(D11, D13, D12, D7, D10); |
| chris | 8:e0f3f151c3cc | 7 | LM75B sensor(D14,D15); |
| okano | 0:ce7a8546502b | 8 | |
| chris | 2:9e757151de9b | 9 | int main () |
| okano | 0:ce7a8546502b | 10 | { |
| chris | 6:bb84f3ab523d | 11 | while (1) { |
| chris | 6:bb84f3ab523d | 12 | lcd.cls(); |
| chris | 6:bb84f3ab523d | 13 | lcd.locate(0,3); |
| chris | 8:e0f3f151c3cc | 14 | lcd.printf("Temp = %.1f\n", sensor.temp()); |
| chris | 6:bb84f3ab523d | 15 | wait(1.0); |
| chris | 2:9e757151de9b | 16 | } |
| okano | 0:ce7a8546502b | 17 | } |
