sketchbook
|
Public Member Functions | |
def | __init__ |
def | get_temp_humi |
This class implements an interface to the SHT31 temprature and humidity sensor from Sensirion.
def sht31.SHT31.__init__ | ( | self, | |
i2c, | |||
addr = 0x44 |
|||
) |
Initialize a sensor object on the given I2C bus and accessed by the given address.
def sht31.SHT31.get_temp_humi | ( | self, | |
resolution = R_HIGH , |
|||
clock_stretch = True , |
|||
celsius = True |
|||
) |
Read the temperature in degree celsius or fahrenheit and relative humidity. Resolution and clock stretching can be specified. Returns a tuple for both values in that order.