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
Diff: main.cpp
- Revision:
- 9:f1171717f973
- Parent:
- 8:e0f3f151c3cc
- Child:
- 10:f61535dd9391
--- 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);
}
}