Brice Carette / Mbed 2 deprecated DS-Ex13

Dependencies:   mbed C12832 LM75B

Committer:
brissou
Date:
Wed Dec 08 14:38:42 2021 +0000
Revision:
10:f61535dd9391
Parent:
9:f1171717f973
13

Who changed what in which revision?

UserRevisionLine numberNew contents of line
okano 0:ce7a8546502b 1 #include "mbed.h"
chris 2:9e757151de9b 2 #include "LM75B.h"
chris 5:608f2bf4d3f7 3 #include "C12832.h"
okano 0:ce7a8546502b 4
chris 6:bb84f3ab523d 5 // Using Arduino pin notation
chris 6:bb84f3ab523d 6 C12832 lcd(D11, D13, D12, D7, D10);
rtk 9:f1171717f973 7 // Instantation d'un objet de classe LM75B
brissou 10:f61535dd9391 8 LM75B LM(I2C_SDA,I2C_SCL);
rtk 9:f1171717f973 9
okano 0:ce7a8546502b 10
chris 2:9e757151de9b 11 int main ()
okano 0:ce7a8546502b 12 {
chris 6:bb84f3ab523d 13 while (1) {
chris 6:bb84f3ab523d 14 lcd.cls();
chris 6:bb84f3ab523d 15 lcd.locate(0,3);
brissou 10:f61535dd9391 16 lcd.printf("La temperature est de = %.1f °C", LM.temp()); // Récupérer la température
chris 6:bb84f3ab523d 17 wait(1.0);
chris 2:9e757151de9b 18 }
okano 0:ce7a8546502b 19 }