...

Dependencies:   C12832 LM75B mbed

Fork of app-board-LM75B by Chris Styles

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?

UserRevisionLine numberNew 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 }