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: mbed C12832 LM75B
main.cpp@6:bb84f3ab523d, 2014-02-07 (annotated)
- Committer:
- chris
- Date:
- Fri Feb 07 17:44:04 2014 +0000
- Revision:
- 6:bb84f3ab523d
- Parent:
- 5:608f2bf4d3f7
- Child:
- 7:80852d9feb4b
First check in
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 | 6:bb84f3ab523d | 7 | LM75B sensor(SDA,SCL); | 
| 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 | 6:bb84f3ab523d | 14 | lcd.printf("Temp = %.1f\n", float(sensor)); | 
| chris | 6:bb84f3ab523d | 15 | wait(1.0); | 
| chris | 2:9e757151de9b | 16 | } | 
| okano | 0:ce7a8546502b | 17 | } |