Metadata-Version: 2.4
Name: hp203b-library
Version: 1.0.3
Summary: MicroPython library for HP203B barometric pressure sensor
Author-email: Tan Siret Akinci <tan@riscfruit.com>
License-Expression: GPL-3.0-or-later
Project-URL: Homepage, https://github.com/riscfruit/HP203B-Library
Project-URL: Issues, https://github.com/riscfruit/HP203B-Library/issues
Classifier: Intended Audience :: Developers
Classifier: Topic :: Software Development :: Libraries
Classifier: Topic :: Software Development :: Embedded Systems
Classifier: Topic :: System :: Hardware
Classifier: Programming Language :: Python :: 3
Description-Content-Type: text/markdown
License-File: LICENSE
Dynamic: license-file

# HP203B-Library
MicroPython library for HP203B barometric pressure sensor. Written to be used on [Riscfruit Pico2 Expansion Card](https://github.com/riscfruit/Pico2-Expansion-Card) to control [HP203B Sensor Module](https://github.com/riscfruit/HP203B-I2C-Sensor).

### Installation
Install via pip inside your project directory:
```bash
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:

```python
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](examples/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](LICENSE).
