Skip to main content

Introduction

Documentation Status Discord Build Status

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 .env
source .env/bin/activate
pip3 install adafruit-circuitpython-mprls

Usage Example

import time
import board
import busio
import adafruit_mprls

i2c = busio.I2C(board.SCL, board.SDA)

# 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)

Contributing

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

Documentation

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

Metadata

Release files for adafruit-circuitpython-mprls 1.2.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for adafruit-circuitpython-mprls 1.2.5
File Size Uploaded Provenance
adafruit-circuitpython-mprls-1.2.5.tar.gz 26.1 kB Without provenance Details

Release files / adafruit-circuitpython-mprls-1.2.5.tar.gz

Download URL adafruit-circuitpython-mprls-1.2.5.tar.gz
Size 26.1 kB
Tags Source
SHA-256 checksum
How to use checksums
f1f647c01bc8f93f301b4f82bb058e31ee6ed59580faa538fe133cdd23f91ea6
BLAKE2b-256 checksum
How to use checksums
ebc50005e8942cb083d3f2c4bfc2e1c08a05fdced4a108455acf7bfaf4f36962
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.56.2 CPython/3.9.1

Security for adafruit-circuitpython-mprls 1.2.5

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Release history Release notifications | RSS feed

This release

1.2.5 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page