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: HP206C mbed HMC5883L DHT DS1820
T_H_air.h
- Committer:
- SBACCARI
- Date:
- 2018-10-08
- Revision:
- 50:2cbcbc06ceb6
- Parent:
- 46:40b6bbf6167e
- Child:
- 54:61d003e0754d
File content as of revision 50:2cbcbc06ceb6:
#include "mbed.h"
#include "DHT.h"
#include "config.h"
/* ************************ MODE D'EMPLOI *****************************************************
Ce fichier contient les fonction à piblier pour le capteur DHT22
Pour la lecture des valeurs d'humidité et de la temprature un wait de 2s au minimum est necessaire
Il est a noté que le capteurs envoie parfois des valeurs nulles, ces valeur doivent etre exclu
airH = airHumidity(sensor);
if( airH!=0){
pc.printf("H = %.2f pourcent \r\n", airH);
}
wait(2);
airT = airTemperature(sensor);
if( airT!=0 ){
pc.printf("T = %.2f \r\n", airT);
}
*************************************************************************************************/
float airHumidity(DHT sensor);
float airTemperature(DHT sensor);
