Skip to main content

CircuitPython library to support Honeywell MPRLS digital pressure sensors.

Project description

Introduction

Documentation Status Discord Build Status Code Style: Black

CircuitPython library to support Honeywell MPRLS digital pressure sensors.

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-mprls

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

sudo pip3 install adafruit-circuitpython-mprls

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-mprls

Usage Example

import time
import board
import adafruit_mprls

i2c = board.I2C()

# Simplest use, connect to default over I2C
mpr = adafruit_mprls.MPRLS(i2c, psi_min=0, psi_max=25)

while True:
    print((mpr.pressure,))
    time.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-mprls-1.2.17.tar.gz (26.2 kB view details)

Uploaded Source

Built Distribution

File details

Details for the file adafruit-circuitpython-mprls-1.2.17.tar.gz.

File metadata

File hashes

Hashes for adafruit-circuitpython-mprls-1.2.17.tar.gz
Algorithm Hash digest
SHA256 a6fc991935e6f9a5220638669f5df18387b22a4567c08b1a7fbbdd8834ff0f31
MD5 6e47f08c20b05f5ea2942129314c9dbb
BLAKE2b-256 2e245045c0c7e189028caf0bcdca5c94e30d3efa97e4fdfeec1e3f524a99ea02

See more details on using hashes here.

File details

Details for the file adafruit_circuitpython_mprls-1.2.17-py3-none-any.whl.

File metadata

File hashes

Hashes for adafruit_circuitpython_mprls-1.2.17-py3-none-any.whl
Algorithm Hash digest
SHA256 67c664b7f63662b50857b8e62610523cec5fc4ac69e0f7a36403b6bd8e5b9515
MD5 a20522d422e4df8d7a22f7a9ec6e3f37
BLAKE2b-256 d5ef12f78d2689d465d9bcb4a93b4c72185f9506d3b6f1e014b707172448a035

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