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: lib_LCD_i2c_SPTLYI lib_LCD_oem lib_SHT11
main.cpp
- Committer:
- YSI
- Date:
- 2018-02-19
- Revision:
- 0:97f794a03fd5
- Child:
- 1:71eaad8c33dc
File content as of revision 0:97f794a03fd5:
#include "mbed.h"
#include "lib_SHT11.h"
#include "lib_LCD_i2c_SPTLYI.h"
LCD_I2C LCD;
SHT11 capteur_HT;
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);
LCD.print("T=%f\tH=%f\r\n", Temperature_mesuree, Humidite_mesuree);
}
}
}