TP BTS SNEC avec le capteur de température

Dependencies:   C12832 LM75B mbed

Fork of app-shield-LM75B by Chris Styles

Revision:
8:e0f3f151c3cc
Parent:
7:80852d9feb4b
Child:
9:c85bf418d6bd
--- a/main.cpp	Mon Feb 17 14:28:16 2014 +0000
+++ b/main.cpp	Fri Aug 01 14:29:15 2014 +0000
@@ -4,14 +4,14 @@
 
 // Using Arduino pin notation
 C12832 lcd(D11, D13, D12, D7, D10);
-LM75B sensor(SDA,SCL);
+LM75B sensor(D14,D15);
 
 int main ()
 {
     while (1) {
         lcd.cls();
         lcd.locate(0,3);
-        lcd.printf("Temp = %.1f\n", sensor.read());
+        lcd.printf("Temp = %.1f\n", sensor.temp());
         wait(1.0);
     }
 }