Skip to main content

CircuitPython driver for the MS8607 PTH sensor

Project description

Introduction

Documentation Status Discord Build Status Code Style: Black

CircuitPython driver for the MS8607 PTH sensor

Dependencies

This driver depends on:

Please ensure all dependencies are available on the CircuitPython filesystem. This is easily achieved by downloading the Adafruit library and driver bundle.

Installing from PyPI

On supported GNU/Linux systems like the Raspberry Pi, you can install the driver locally from PyPI. To install for current user:

pip3 install adafruit-circuitpython-ms8607

To install system-wide (this may be required in some cases):

sudo pip3 install adafruit-circuitpython-ms8607

To install in a virtual environment in your current project:

mkdir project-name && cd project-name
python3 -m venv .venv
source .venv/bin/activate
pip3 install adafruit-circuitpython-ms8607

Usage Example

from time import sleep
import board
from adafruit_ms8607 import MS8607

i2c = board.I2C()
sensor = MS8607(i2c)

while True:

    print("Pressure: %.2f hPa" % sensor.pressure)
    print("Temperature: %.2f C" % sensor.temperature)
    print("Humidity: %.2f %% rH" % sensor.relative_humidity)
    sleep(1)

Documentation

API documentation for this library can be found on Read the Docs.

For information on building library documentation, please check out this guide.

Contributing

Contributions are welcome! Please read our Code of Conduct before contributing to help this project stay welcoming.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

adafruit-circuitpython-ms8607-1.0.16.tar.gz (28.4 kB view details)

Uploaded Source

Built Distribution

File details

Details for the file adafruit-circuitpython-ms8607-1.0.16.tar.gz.

File metadata

File hashes

Hashes for adafruit-circuitpython-ms8607-1.0.16.tar.gz
Algorithm Hash digest
SHA256 75f73316e379defbc0ee8a70eec37ada08443317858599cd4fe350f9db840fdd
MD5 f2504cee16ecbb16e136986853387eff
BLAKE2b-256 c46a44802997b239ec1957c2a49452f89f68395e4cd60d1c4b9e59eca3515c48

See more details on using hashes here.

File details

Details for the file adafruit_circuitpython_ms8607-1.0.16-py3-none-any.whl.

File metadata

File hashes

Hashes for adafruit_circuitpython_ms8607-1.0.16-py3-none-any.whl
Algorithm Hash digest
SHA256 5b3760570d73f0528793027935479ef239e38d1a9d8acd2df8ee7bfa133707e5
MD5 675ba011b018cbfac2a532f5b929caa8
BLAKE2b-256 1a919335ba10282f75bbd2ca7421fb087a54b374f2ad0359cd8376ad01f7b8ca

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page