Nol.A SDK Library 26.11.2
For IoT System Software Development
Loading...
Searching...
No Matches
HTU2xD Class Reference

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.

Detailed Description

Synchronous HTU2xD I2C temperature and humidity driver at address 0x40. Call begin() first. Reads do not validate CRC or return communication errors.

Author
Jongsoo Jeong (CoXlab)
Date
2022. 8. 23.
Examples
plm150/TempHum-Sensor_HTU2x-I2C/main.cpp.

Constructor & Destructor Documentation

◆ HTU2xD()

HTU2xD::HTU2xD ( TwoWire & w)
inline

Bind the I2C bus, which must outlive the driver.

55: wire(w) {}

The documentation for this class was generated from the following file: