Récupérer la température DS mbed
Dependencies: C12832 LM75B mbed
Fork of app-shield-LM75B by
Diff: main.cpp
- Revision:
- 7:80852d9feb4b
- Parent:
- 6:bb84f3ab523d
- Child:
- 8:e0f3f151c3cc
--- 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); } }