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.
main.cpp
00001 #include "mbed.h" 00002 #include "lib_SHT11.h" 00003 00004 SHT11 capteur_HT; 00005 //SHT11 capteur_HT(p30, p29, 2.0); //data, sck, periode_cycle_mesure 00006 Serial pc(USBTX, USBRX); 00007 00008 int main() 00009 { 00010 float Temperature_mesuree=0.0, Humidite_mesuree=0.0; 00011 00012 while(1) 00013 { 00014 if((Temperature_mesuree != capteur_HT.lire_T()) || (Humidite_mesuree != capteur_HT.lire_H())) 00015 { 00016 capteur_HT.lire_T_H(&Temperature_mesuree, &Humidite_mesuree); 00017 pc.printf("T=%f\tH=%f\r\n", Temperature_mesuree, Humidite_mesuree); 00018 } 00019 } 00020 }
Generated on Sat Jul 30 2022 02:35:32 by
1.7.2