Adafruit HTU21D-F Arduino Library
|
#include <Adafruit_HTU21DF.h>
Public Member Functions | |
Adafruit_HTU21DF () | |
bool | begin (TwoWire *theWire=&Wire) |
float | readTemperature (void) |
float | readHumidity (void) |
void | reset (void) |
Driver for the Adafruit HTU21DF breakout board.
Adafruit_HTU21DF::Adafruit_HTU21DF | ( | ) |
Constructor for the HTU21DF driver.
bool Adafruit_HTU21DF::begin | ( | TwoWire * | theWire = &Wire | ) |
Initialises the I2C transport, and configures the IC for normal operation.
theWire | Pointer to TwoWire I2C object, uses &Wire by default |
float Adafruit_HTU21DF::readTemperature | ( | void | ) |
Performs a single temperature conversion in degrees Celsius.
float Adafruit_HTU21DF::readHumidity | ( | void | ) |
Performs a single relative humidity conversion.
void Adafruit_HTU21DF::reset | ( | void | ) |
Sends a 'reset' request to the HTU21DF, followed by a 15ms delay.