SHT21
Last updated
Last updated
Driver for I2C temperature and humidity sensor.
Type
Name
float
float
int
int
Connection class, utilizing a I2C interface Example:
Parameters:
*i2c a pointer to the i2c interface that is used for communication
frequency - I2C frequency
Read the temperature value from the sensor Involves triggering the measuring unit then waiting for 100ms for the measuring to complete before reading the temperature
Parameters:
returns a value representing the temperature in degrees centigrade
Read the humidity value from the sensor Involves triggering the measuring unit then waiting for 100ms for the measuring to complete before reading the humidity
Parameters:
returns the percentage humidity
Perform a soft-reset of the sensor unit.
Set the precision of the measuring //Data precision settings //RH 12 T 14 - default
//RH 8 T 10
//RH 10 T 13
//RH 11 T 11
Parameters:
precision - the precision, refer to above or datasheet.
The documentation for this class was generated from the following file: D:/w/hw-libs/\_libs\_/libraries/SHT21\_ncleee.h
(I2C * i2c)
()
()
()
(char precision)
Constructor - create a connection to a temperature and humidity sensor through an I2C interface