30 #include <mraa/i2c.hpp> 
   32 #define TH02_ADDR                0x40 // device address 
   34 #define TH02_REG_STATUS          0x00 
   35 #define TH02_REG_DATA_H          0x01 
   36 #define TH02_REG_DATA_L          0x02 
   37 #define TH02_REG_CONFIG          0x03 
   38 #define TH02_REG_ID              0x11 
   40 #define TH02_STATUS_RDY_MASK     0x01 
   42 #define TH02_CMD_MEASURE_HUMI    0x01 
   43 #define TH02_CMD_MEASURE_TEMP    0x11 
   77         TH02 (
int bus=0, uint8_t addr=TH02_ADDR);
 
std::string name()
Definition: th02.h:102
 
bool getStatus()
Definition: th02.cxx:95
 
float getHumidity()
Definition: th02.cxx:74
 
~TH02()
Definition: th02.cxx:49
 
TH02(int bus=0, uint8_t addr=TH02_ADDR)
Definition: th02.cxx:38
 
float getTemperature()
Definition: th02.cxx:53
 
API for the TH02 Temperature & Humidity Sensor. 
Definition: th02.h:72