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.
Dependents: lib_SHT11_example libs_YSI_example
lib_SHT11.cpp File Reference
Go to the source code of this file.
Detailed Description
SHT11 class.
library for SHT11 humidity and temperature sensor
Utilisée pour mesurer la temperature et l'humidite
https://www.sensirion.com/products/humidity-sensor/
Copyright (c) 2012, cstyles (http://mbed.org)
Exemple:
#include "mbed.h" #include "lib_SHT11.h" SHT11 capteur_HT; //SHT11 capteur_HT(p30, p29, 2.0); //data, sck, periode_cycle_mesure Serial pc(USBTX, USBRX); int main() { float Temperature_mesuree=0.0, Humidite_mesuree=0.0; while(1) { if((Temperature_mesuree != capteur_HT.lire_T()) || (Humidite_mesuree != capteur_HT.lire_H())) { capteur_HT.lire_T_H(&Temperature_mesuree, &Humidite_mesuree); pc.printf("T=%f\tH=%f\r\n", Temperature_mesuree, Humidite_mesuree); } } }
- Date:
- Jun 2012
Definition in file lib_SHT11.cpp.
Generated on Sun Jul 24 2022 05:26:13 by
1.7.2