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: lib_LCD_i2c_SPTLYI lib_LCD_oem lib_SHT11
main.cpp
00001 #include "mbed.h" 00002 #include "lib_SHT11.h" 00003 #include "lib_LCD_oem_ELCD.h" 00004 #include "lib_LCD_i2c_SPTLYI.h" 00005 00006 LCD_I2C LCD; 00007 //LCD_OEM LCD; 00008 SHT11 capteur_HT; 00009 00010 int main() 00011 { 00012 float Temperature_mesuree=0.0, Humidite_mesuree=0.0; 00013 00014 while(1) 00015 { 00016 if((Temperature_mesuree != capteur_HT.lire_T()) || (Humidite_mesuree != capteur_HT.lire_H())) 00017 { 00018 capteur_HT.lire_T_H(&Temperature_mesuree, &Humidite_mesuree); 00019 LCD.clear(); 00020 LCD.print("T=%f H=%f", Temperature_mesuree, Humidite_mesuree); 00021 } 00022 wait(2.0); 00023 } 00024 }
Generated on Thu Jul 21 2022 10:45:34 by
1.7.2