adafruit_ms8607
CircuitPython driver for the MS8607 PTH sensor
Author(s): Bryan Siepert
Hardware:
Software and Dependencies:
Adafruit CircuitPython firmware for the supported boards: https://github.com/adafruit/circuitpython/releases
Adafruit’s Bus Device library: https:#github.com/adafruit/Adafruit_CircuitPython_BusDevice
Adafruit’s Register library: https:#github.com/adafruit/Adafruit_CircuitPython_Register
struct helper
Add CV values to the class
Validate that a given value is a member
Options for pressure_resolution
Library for the MS8607 Pressure, Temperature and Humidity Sensor
i2c_bus (I2C) – The I2C bus the MS8607 is connected to.
Quickstart: Importing and using the MS8607 temperature sensor
Here is an example of using the
MS8607
class. First you will need to import the libraries to use the sensorimport board import adafruit_ms8607Once this is done you can define your
board.I2C
object and define your sensor objecti2c = board.I2C() # uses board.SCL and board.SDA ms = adafruit_ms8607.MS8607(i2c)Now you have access to the pressure, temperature and humidity using the
pressure
,temperature
andrelative_humidity
attributestemperature = ms.temperature relative_humidity = ms.relative_humidity pressure = ms.pressure
The humidity sensor’s measurement resolution
Configure the sensors with the default settings and state. For use after calling reset()
The current barometric pressure in hPa
Pressure and Temperature, measured at the same time
The measurement resolution used for the pressure and temperature sensor
The current relative humidity in % rH
Reset the sensor to an initial unconfigured state
The current temperature in degrees Celcius
Options for pressure_resolution
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4