Brice Carette / Mbed 2 deprecated DS-Ex13

Dependencies:   mbed C12832 LM75B

Files at this revision

API Documentation at this revision

Comitter:
brissou
Date:
Wed Dec 08 14:38:42 2021 +0000
Parent:
9:f1171717f973
Commit message:
13

Changed in this revision

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
--- a/main.cpp	Mon Nov 02 17:21:51 2015 +0000
+++ b/main.cpp	Wed Dec 08 14:38:42 2021 +0000
@@ -5,7 +5,7 @@
 // Using Arduino pin notation
 C12832 lcd(D11, D13, D12, D7, D10);
 // Instantation d'un objet de classe LM75B
-/* à compléter -----------------------------------*/
+LM75B LM(I2C_SDA,I2C_SCL);
 
 
 int main ()
@@ -13,7 +13,7 @@
     while (1) {
         lcd.cls();
         lcd.locate(0,3);
-        lcd.printf("La temperature est de = %.1f °C", /*__________________*/); // Récupérer la température
+        lcd.printf("La temperature est de = %.1f °C", LM.temp()); // Récupérer la température
         wait(1.0);
     }
 }
--- a/mbed.bld	Mon Nov 02 17:21:51 2015 +0000
+++ b/mbed.bld	Wed Dec 08 14:38:42 2021 +0000
@@ -1,1 +1,1 @@
-http://mbed.org/users/mbed_official/code/mbed/builds/9296ab0bfc11
\ No newline at end of file
+https://os.mbed.com/users/mbed_official/code/mbed/builds/65be27845400
\ No newline at end of file