Récupérer la température DS mbed

Dependencies:   C12832 LM75B mbed

Fork of app-shield-LM75B by Chris Styles

Files at this revision

API Documentation at this revision

Comitter:
rtk
Date:
Mon Nov 02 17:21:51 2015 +0000
Parent:
8:e0f3f151c3cc
Commit message:
..

Changed in this revision

LM75B.lib Show annotated file Show diff for this revision Revisions of this file
main.cpp Show annotated file Show diff for this revision Revisions of this file
mbed.bld Show annotated file Show diff for this revision Revisions of this file
diff -r e0f3f151c3cc -r f1171717f973 LM75B.lib
--- a/LM75B.lib	Fri Aug 01 14:29:15 2014 +0000
+++ b/LM75B.lib	Mon Nov 02 17:21:51 2015 +0000
@@ -1,1 +1,1 @@
-http://mbed.org/users/neilt6/code/LM75B/#fc27dc535ea9
+http://mbed.org/users/neilt6/code/LM75B/#7ac462ba84ac
diff -r e0f3f151c3cc -r f1171717f973 main.cpp
--- a/main.cpp	Fri Aug 01 14:29:15 2014 +0000
+++ b/main.cpp	Mon Nov 02 17:21:51 2015 +0000
@@ -4,14 +4,16 @@
 
 // Using Arduino pin notation
 C12832 lcd(D11, D13, D12, D7, D10);
-LM75B sensor(D14,D15);
+// Instantation d'un objet de classe LM75B
+/* à compléter -----------------------------------*/
+
 
 int main ()
 {
     while (1) {
         lcd.cls();
         lcd.locate(0,3);
-        lcd.printf("Temp = %.1f\n", sensor.temp());
+        lcd.printf("La temperature est de = %.1f °C", /*__________________*/); // Récupérer la température
         wait(1.0);
     }
 }
diff -r e0f3f151c3cc -r f1171717f973 mbed.bld
--- a/mbed.bld	Fri Aug 01 14:29:15 2014 +0000
+++ b/mbed.bld	Mon Nov 02 17:21:51 2015 +0000
@@ -1,1 +1,1 @@
-http://mbed.org/users/mbed_official/code/mbed/builds/6213f644d804
\ No newline at end of file
+http://mbed.org/users/mbed_official/code/mbed/builds/9296ab0bfc11
\ No newline at end of file