|
Nol.A SDK Library 26.11.2
For IoT System Software Development
|
Synchronous T9602 humidity and temperature reader. Call begin() first. Communication errors and sensor status are not reported. More...
#include <T9602_I2C.hpp>
Public Member Functions | |
| T9602_I2C (TwoWire &w, uint8_t address) | |
| Bind the I2C bus and 7-bit sensor address. Both are used by subsequent reads. | |
| void | begin () |
| Initialize the bound I2C bus. | |
| float | readTemperature () |
| Read the temperature register and return degrees Celsius. | |
| float | readHumidity () |
| Read the humidity register and return percent relative humidity. | |
| void | readHumidityAndTemperature (float *h, float *t) |
| Read humidity and temperature in one four-byte transaction. | |
Synchronous T9602 humidity and temperature reader. Call begin() first. Communication errors and sensor status are not reported.
|
inline |
Bind the I2C bus and 7-bit sensor address. Both are used by subsequent reads.
| void T9602_I2C::readHumidityAndTemperature | ( | float * | h, |
| float * | t ) |
Read humidity and temperature in one four-byte transaction.
| h | Output in percent relative humidity; nullptr skips storing humidity. |
| t | Output in degrees Celsius; nullptr skips storing temperature. |