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.cpp
- Committer:
- MathieuM
- Date:
- 2018-10-08
- Revision:
- 53:a0752606d02c
- Parent:
- 50:2cbcbc06ceb6
- Child:
- 62:d902b1e77094
File content as of revision 53:a0752606d02c:
#include "T_H_air.h" #include "config.h" float airHumidity(DHT sensor) { DigitalOut warningAir(W_AIR); int err = 0; err = sensor.readData(); while( !err ) { err = sensor.readData(); return sensor.ReadHumidity() ; } return 0; } float airTemperature(DHT sensor) { DigitalOut warningAir(W_AIR); int err = 0; err = sensor.readData(); while( !err ) { err = sensor.readData(); return sensor.ReadTemperature(CELCIUS) ; } return 0; }