![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
TP CAN DII4A
Diff: tHIH6130.h
- Revision:
- 0:f7a3b8c3f8ce
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tHIH6130.h Sat Jun 03 19:05:11 2017 +0000 @@ -0,0 +1,37 @@ +#ifndef THIH6130_H +#define THIH6130_H + +#include "mbed.h" + +class tHIH6130 +{ + private: + I2C *pI2c; + unsigned char WrAdr; + unsigned char RdAdr; + + float Temp,Humi; + + + + public: + tHIH6130(unsigned char aAdrHIH,I2C* apI2c); + float getTemp(void); + float getHumi(void); + + + int StartMesure(void); // Déclenche la mesure + int UpdateData(void); // Met à jour température et humidié, à appeler au plus tôt 50ms après StartMesure + + + + + + + +}; + +#endif + + +