LM75B LBS-Ebiswald

Dependencies:   C12832_lcd LM75B mbed

Fork of LM75B-HelloWorld by Chris Styles

Committer:
wipflhan
Date:
Tue Dec 03 10:39:13 2013 +0000
Revision:
5:21c35ad77b78
Parent:
4:02cf3a06a13e
LBS-Eibiswald

Who changed what in which revision?

UserRevisionLine numberNew contents of line
okano 0:ce7a8546502b 1 #include "mbed.h"
chris 2:9e757151de9b 2 #include "LM75B.h"
wipflhan 5:21c35ad77b78 3 #include "C12832_lcd.h"
okano 0:ce7a8546502b 4
chris 2:9e757151de9b 5 LM75B tmp(p28,p27);
wipflhan 5:21c35ad77b78 6 C12832_LCD lcd;
okano 0:ce7a8546502b 7
chris 2:9e757151de9b 8 int main ()
okano 0:ce7a8546502b 9 {
chris 2:9e757151de9b 10 while (1) {
wipflhan 5:21c35ad77b78 11
wipflhan 5:21c35ad77b78 12 lcd.cls();
chris 4:02cf3a06a13e 13 printf("%.2f\n",tmp.read());
wipflhan 5:21c35ad77b78 14
wipflhan 5:21c35ad77b78 15 lcd.locate(0,3);
wipflhan 5:21c35ad77b78 16 lcd.printf("%.2f\n",tmp.read());
chris 2:9e757151de9b 17 wait(1.0);
chris 2:9e757151de9b 18 }
okano 0:ce7a8546502b 19 }