Récupérer la température DS mbed

Dependencies:   C12832 LM75B mbed

Fork of app-shield-LM75B by Chris Styles

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers main.cpp Source File

main.cpp

00001 #include "mbed.h"
00002 #include "LM75B.h"
00003 #include "C12832.h"
00004 
00005 // Using Arduino pin notation
00006 C12832 lcd(D11, D13, D12, D7, D10);
00007 // Instantation d'un objet de classe LM75B
00008 /* à compléter -----------------------------------*/
00009 
00010 
00011 int main ()
00012 {
00013     while (1) {
00014         lcd.cls();
00015         lcd.locate(0,3);
00016         lcd.printf("La temperature est de = %.1f °C", /*__________________*/); // Récupérer la température
00017         wait(1.0);
00018     }
00019 }