|
Nol.A SDK Library 26.11.2
For IoT System Software Development
|
Synchronous HTU2xD I2C temperature and humidity driver at address 0x40. Call begin() first. Reads do not validate CRC or return communication errors. More...
#include <HTU2xD.hpp>
Public Member Functions | |
| HTU2xD (TwoWire &w) | |
| Bind the I2C bus, which must outlive the driver. | |
| void | begin () |
| Initialize the I2C bus and send a sensor reset command. | |
| void | reset () |
| Send the soft-reset command without waiting for reset completion. | |
| float | readTemperature () |
| Perform a hold-master measurement and return degrees Celsius. | |
| float | readHumidity () |
| Perform a hold-master measurement and return percent relative humidity. | |
Synchronous HTU2xD I2C temperature and humidity driver at address 0x40. Call begin() first. Reads do not validate CRC or return communication errors.
|
inline |
Bind the I2C bus, which must outlive the driver.