...
Dependencies: C12832 LM75B mbed
Fork of app-board-LM75B by
main.cpp
- Committer:
- chris
- Date:
- 2013-10-29
- Revision:
- 4:6df97cb10041
- Parent:
- 3:4d612f16ad84
- Child:
- 5:608f2bf4d3f7
File content as of revision 4:6df97cb10041:
#include "mbed.h" #include "LM75B.h" #include "C12832_lcd.h" C12832_LCD lcd; LM75B sensor(p28,p27); Serial pc(USBTX,USBRX); int main () { //Try to open the LM75B if (sensor.open()) { printf("Device detected!\n"); while (1) { lcd.cls(); lcd.locate(0,3); lcd.printf("Temp = %.3f\n", (float)sensor); wait(1.0); } } else { error("Device not detected!\n"); } }