Example program for app shield using the LM75 temperature sensor

Dependencies:   C12832 LM75B mbed

Fork of app-board-LM75B by Chris Styles

Files at this revision

API Documentation at this revision

Comitter:
chris
Date:
Mon Feb 17 14:28:16 2014 +0000
Parent:
6:bb84f3ab523d
Child:
8:e0f3f151c3cc
Commit message:
updated the call to the sensor read() function

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Fri Feb 07 17:44:04 2014 +0000
+++ b/main.cpp	Mon Feb 17 14:28:16 2014 +0000
@@ -11,7 +11,7 @@
     while (1) {
         lcd.cls();
         lcd.locate(0,3);
-        lcd.printf("Temp = %.1f\n", float(sensor));
+        lcd.printf("Temp = %.1f\n", sensor.read());
         wait(1.0);
     }
 }