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
Diff: T_H_air.cpp
- Revision:
- 40:0b19a258c614
- Parent:
- 29:e050039204ab
- Child:
- 41:d3434f5816ad
--- a/T_H_air.cpp Mon Oct 01 08:30:55 2018 +0000 +++ b/T_H_air.cpp Mon Oct 01 09:31:55 2018 +0000 @@ -1,6 +1,7 @@ #include "T_H_air.h" DHT sensor(PinName, DHTtype); +DigitalOut warningAir(LED3); float airHumidity(){ int err = 0; @@ -9,5 +10,6 @@ if( !err ){ return sensor.ReadHumidity() ; } + warningAir = 1; return EXIT_FAILURE ; } \ No newline at end of file