Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Adds a new MicroPython driver library for the Würth Elektronik WSEN-PADS pressure/temperature sensor, including constants, exceptions, packaging manifest, documentation, and runnable example scripts.
Changes:
- Introduces
WSEN_PADSdriver implementation with I2C helpers, one-shot and continuous modes, and basic configuration/reset support. - Adds sensor register/bitfield constants and a small exception hierarchy for driver errors.
- Adds a library
manifest.py, README documentation, and multiple example scripts (plus a full “test” script).
Reviewed changes
Copilot reviewed 11 out of 11 changed files in this pull request and generated 9 comments.
Show a summary per file
| File | Description |
|---|---|
| lib/wsen-pads/wsen_pads/exceptions.py | Defines driver-specific exception types. |
| lib/wsen-pads/wsen_pads/device.py | Implements the WSEN-PADS driver (I2C operations, reading, configuration). |
| lib/wsen-pads/wsen_pads/const.py | Adds register map, bit masks, ODR values, and conversion/timing constants. |
| lib/wsen-pads/wsen_pads/init.py | Exposes WSEN_PADS as the package public API. |
| lib/wsen-pads/manifest.py | Declares package metadata and packaging entry. |
| lib/wsen-pads/exemples/test.py | Adds a comprehensive manual test script for the sensor/driver. |
| lib/wsen-pads/exemples/one_shot_reader.py | Adds a one-shot reading example. |
| lib/wsen-pads/exemples/continuous_reader.py | Adds a continuous mode reading example. |
| lib/wsen-pads/exemples/basic_reader.py | Adds a basic read loop example. |
| lib/wsen-pads/exemples/altitude.py | Adds an altitude estimation example based on pressure. |
| lib/wsen-pads/README.md | Documents features, usage, and repository layout for the new driver. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
04532d6 to
5098385
Compare
nedseb
requested changes
Mar 10, 2026
This was referenced Mar 12, 2026
7 tasks
|
🎉 This PR is included in version 0.0.2 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
This was referenced Mar 28, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #8
Add WSEN-PADS MicroPython driver
This pull request introduces a new MicroPython driver for the Würth Elektronik WSEN-PADS absolute pressure sensor.
The driver provides an easy-to-use API for reading pressure and temperature via the I²C interface, and follows the structure used by the other drivers in the repository.
Features
DEVICE_IDpressure_available,temperature_available,is_ready)Sensor specifications
Driver API
Additional features:
Examples
The driver includes several examples demonstrating common use cases:
Structure