Skip to content

Bookworm/Pi5 Compatibility: Upgrade to latest boilerplate, port to gpiod#59

Merged
Gadgetoid merged 14 commits intomainfrom
repackage
Apr 29, 2024
Merged

Bookworm/Pi5 Compatibility: Upgrade to latest boilerplate, port to gpiod#59
Gadgetoid merged 14 commits intomainfrom
repackage

Conversation

@Gadgetoid
Copy link
Copy Markdown
Member

@Gadgetoid Gadgetoid commented Feb 15, 2024

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:

Tested

  • Lights
  • Relays
  • Outputs
  • Inputs
  • ADC - Measured against 3.3v and 5v on the board

Since we're dropping RPi.GPIO and switching smbus to smbus2 there
really shouldn't be any instances of failed imports.
@coveralls
Copy link
Copy Markdown

coveralls commented Feb 16, 2024

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%
Files with Coverage Reduction New Missed Lines %
automationhat/init.py 1 65.45%
Totals Coverage Status
Change from base Build 1812685808: 4.8%
Covered Lines: 239
Relevant Lines: 358

💛 - Coveralls

* install.sh: drop symlink warning for /boot/config.txt.
* install.sh: drop quotes around apt packages.
Gadgetoid and others added 6 commits April 29, 2024 12:19
0.0.4 includes support for more Pi platforms by treating all pinctrl-
gpiochip devices as valid.
0.0.5 includes support for integer pin numbers, making existing user
code *just work* in most cases.
@Gadgetoid Gadgetoid merged commit 9ebcf6b into main Apr 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants