Pycom WiPy 3.0 Manual page 142

Hide thumbs Also See for WiPy 3.0:
Table of Contents

Advertisement

3.3.2 Pysense
Methods
SI7006A20.humidity()
Read the relative humidity of the
. Returns a float with the percentage relative
SI7006A20
humidity.
SI7006A20.temperature()
Read the external temperature of the
. Returns a float with the temperature.
SI7006A20
Barometric Pressure Sensor with Altimeter (MPL3115A2)
Pysense has a Barometric Pressure sensor that provides readings for pressure, altitude as
well as an additional temperature sensor.
Constructors
class MPL3115A2(pysense = None, sda = 'P22', scl = 'P21', mode = PRESSURE)
Creates a
object, that will return values for pressure (Pa), altitude (m) and
MPL3115A2
temperature ('C). Constructor must be passed a Pysense or I2C object to successfully
construct.
Methods
MPL3115A2.pressure()
Read the atmospheric pressure of the
. Returns a float with the pressure in (Pa).
MPL3115A2
MPL3115A2.altitude()
Read the altitude of the
. Returns a float with the altitude in (m).
MPL3115A2
MPL3115A2.temperature()
Read the temperature of the
. Returns a float with the temperature in ('C).
MPL3115A2
Arguments
The following arguments may be passed into the constructor.
mode
142

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the WiPy 3.0 and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

SipyGpyLopyLopy4Fipy

Table of Contents