Hello World program for LM75B temperature sensor
Fork of app-board-LM75B by
Diff: main.cpp
- Revision:
- 4:02cf3a06a13e
- Parent:
- 3:4d612f16ad84
--- a/main.cpp Fri Oct 26 21:42:06 2012 +0000 +++ b/main.cpp Fri Oct 26 21:57:09 2012 +0000 @@ -1,18 +1,12 @@ #include "mbed.h" #include "LM75B.h" -#include "C12832_lcd.h" -C12832_LCD lcd; LM75B tmp(p28,p27); int main () { - while (1) { - lcd.cls(); - lcd.locate(0,3); - lcd.printf("%.2f\n",tmp.read()); + printf("%.2f\n",tmp.read()); wait(1.0); } - }