Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed C12832 LM75B
Revision 10:f61535dd9391, committed 2021-12-08
- 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