automation-hat
automation-hat copied to clipboard
Bookworm/Pi5 Compatibility: Upgrade to latest boilerplate, port to gpiod
Testing
If you're a Bookworm / Pi 5 user running into virtual environment issues, you can try this library like so:
git clone https://github.com/pimoroni/automation-hat -b repackage
cd automation-hat
./install.sh --unstable
The ./install.sh script will create a pimoroni virtual environment that's shared between our products. (or use your existing venv if you've already activated one.)
For the reasons behind these changes and other information, see:
- https://github.com/pimoroni/boilerplate-python/pull/13
- https://github.com/pimoroni/boilerplate-python/issues/16
- https://pimoroni.github.io/venv-python/
Tested
- [x] Lights
- [x] Relays
- [x] Outputs
- [x] Inputs
- [x] ADC - Measured against 3.3v and 5v on the board
Pull Request Test Coverage Report for Build 8877213793
Details
- 14 of 23 (60.87%) changed or added relevant lines in 1 file are covered.
- 1 unchanged line in 1 file lost coverage.
- Overall coverage increased (+4.8%) to 66.76%
| Changes Missing Coverage | Covered Lines | Changed/Added Lines | % |
|---|---|---|---|
| automationhat/init.py | 14 | 23 | 60.87% |
| <!-- | Total: | 14 | 23 |
| Files with Coverage Reduction | New Missed Lines | % |
|---|---|---|
| automationhat/init.py | 1 | 65.45% |
| <!-- | Total: | 1 |
| Totals | |
|---|---|
| Change from base Build 1812685808: | 4.8% |
| Covered Lines: | 239 |
| Relevant Lines: | 358 |