Skip to main content

HP203B-Library

MicroPython library for HP203B barometric pressure sensor. Written to be used on Riscfruit Pico2 Expansion Card to control HP203B Sensor Module.

Installation

Install via pip inside your project directory:

pip install hp203b-library

You can easily upload the library to your RP2040/RP2350 based embedded device (Riscfruit Pico2 Expansion Card, Raspberry Pi Pico, etc) by creating a lib directory inside and copying it there.

Usage

Import the library and initialize sensor and read all values:

from hp203b import HP203B, OSR_1024

sensor = HP203B(sda=26, scl=27, i2c_id=1, freq=100000, osr=OSR_1024)
t, p, alt = sensor.read_all()

See hp203b-sensor-reading.py for a loop sensor reading example.

Licensing

Copyright (c) 2026, Riscfruit Laboratory. This software is developed and distributed with GPL 3.0.

Metadata

Release files for hp203b-library 1.0.3

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

Source distribution (sdist)

Source distribution for hp203b-library 1.0.3
File Size Uploaded Provenance Actions
hp203b_library-1.0.3.tar.gz 17.2 kB Without provenance Details for hp203b_library-1.0.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for hp203b-library 1.0.3
File Interpreter ABI Platform Actions
hp203b_library-1.0.3-py3-none-any.whl Python 3 none any Details for hp203b_library-1.0.3-py3-none-any.whl

Total release size: 34.9 kB

Release files / hp203b_library-1.0.3.tar.gz

Download URL hp203b_library-1.0.3.tar.gz
Size 17.2 kB
Tags Source
SHA-256 checksum
How to use checksums
3e1a2903b322e2c5fa753cf3d2248b9cc3acd0948cd9e14aefea6bf4adc98b1c
BLAKE2b-256 checksum
How to use checksums
3bbf5ee6e2150de3088021b24f9da41faa191600c027002a14def71c7d7d8641
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.3

Release files / hp203b_library-1.0.3-py3-none-any.whl

Download URL hp203b_library-1.0.3-py3-none-any.whl
Size 17.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8d2795c4a7992e90bb604598b2730738065ee6cd2193eb401e50bc73306c1f9b
BLAKE2b-256 checksum
How to use checksums
0e0b17a928bfb2249ee172c350aa6f8fc5077f2aec80ed7a2dbc2c30fe02c461
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.3

Security for hp203b-library 1.0.3

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.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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