sketchbook
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Public Member Functions | List of all members
sht31.SHT31 Class Reference
Inheritance diagram for sht31.SHT31:

Public Member Functions

def __init__
 
def get_temp_humi
 

Detailed Description

This class implements an interface to the SHT31 temprature and humidity
sensor from Sensirion.

Constructor & Destructor Documentation

def sht31.SHT31.__init__ (   self,
  i2c,
  addr = 0x44 
)
Initialize a sensor object on the given I2C bus and accessed by the
given address.

Member Function Documentation

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.

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