3.3.2 Pysense
Constructors
class LTR329ALS01(pysense = None, sda = 'P22', scl = 'P21', gain = ALS_GAIN_1X,
integration = ALS_INT_100, rate = ALS_RATE_500)
Creates a
LTR329ALS01
passed a Pysense or I2C object to successfully construct.
Methods
LTR329ALS01.light()
Read the light levels of both
levels in lux.
Arguments
The following arguments may be passed into the constructor.
gain
ALS_GAIN_1X, ALS_GAIN_2X, ALS_GAIN_4X, ALS_GAIN_8X, ALS_GAIN_48X,
ALS_GAIN_96X
integration
ALS_INT_50, ALS_INT_100, ALS_INT_150, ALS_INT_200, ALS_INT_250, ALS_INT_300,
ALS_INT_350, ALS_INT_400
rate
ALS_RATE_50, ALS_RATE_100, ALS_RATE_200, ALS_RATE_500, ALS_RATE_1000,
ALS_RATE_2000
Humidity and Temperature Sensor (SI7006A20)
Pysense has a Humidity and Temperature sensor that provides values of relative humidity
and external temperature.
Constructors
class SI7006A20(pysense = None, sda = 'P22', scl = 'P21')
Creates a
SI7006A20
Constructor must be passed a Pysense or I2C object to successfully construct.
object, that will return values for light in lux. Constructor must be
sensors. Returns a tuple with two values for light
LTR329ALS01
object, that will return values for humidity (%) and temperature ('C).
141
Need help?
Do you have a question about the WiPy 3.0 and is the answer not in the manual?
Questions and answers