5 #ifndef _ADAFRUIT_HTU21DF_H 6 #define _ADAFRUIT_HTU21DF_H 8 #include <Adafruit_BusIO_Register.h> 9 #include <Adafruit_I2CDevice.h> 12 #define HTU21DF_I2CADDR (0x40) 15 #define HTU21DF_READTEMP (0xE3) 18 #define HTU21DF_READHUM (0xE5) 21 #define HTU21DF_WRITEREG (0xE6) 24 #define HTU21DF_READREG (0xE7) 27 #define HTU21DF_RESET (0xFE) 36 bool begin(TwoWire *theWire = &Wire);
42 Adafruit_I2CDevice *i2c_dev = NULL;
43 float _last_humidity, _last_temp;
bool begin(TwoWire *theWire=&Wire)
Definition: Adafruit_HTU21DF.cpp:45
void reset(void)
Definition: Adafruit_HTU21DF.cpp:66
float readTemperature(void)
Definition: Adafruit_HTU21DF.cpp:79
Adafruit_HTU21DF()
Definition: Adafruit_HTU21DF.cpp:33
Definition: Adafruit_HTU21DF.h:32
float readHumidity(void)
Definition: Adafruit_HTU21DF.cpp:117