Adafruit HTU21D-F Arduino Library
Public Member Functions | List of all members
Adafruit_HTU21DF Class Reference

#include <Adafruit_HTU21DF.h>

Public Member Functions

 Adafruit_HTU21DF ()
 
boolean begin (void)
 
float readTemperature (void)
 
float readHumidity (void)
 
void reset (void)
 

Detailed Description

Driver for the Adafruit HTU21DF breakout board.

Constructor & Destructor Documentation

◆ Adafruit_HTU21DF()

Adafruit_HTU21DF::Adafruit_HTU21DF ( )

Constructor for the HTU21DF driver.

Member Function Documentation

◆ begin()

boolean Adafruit_HTU21DF::begin ( void  )

Initialises the I2C transport, and configures the IC for normal operation.

Returns
true (1) if the device was successfully initialised, otherwise false (0).

◆ readTemperature()

float Adafruit_HTU21DF::readTemperature ( void  )

Performs a single temperature conversion in degrees Celsius.

Returns
a single-precision (32-bit) float value indicating the measured temperature in degrees Celsius.

◆ readHumidity()

float Adafruit_HTU21DF::readHumidity ( void  )

Performs a single relative humidity conversion.

Returns
A single-precision (32-bit) float value indicating the relative humidity in percent (0..100.0%).

◆ reset()

void Adafruit_HTU21DF::reset ( void  )

Sends a 'reset' request to the HTU21DF, followed by a 15ms delay.


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