Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 14 commits into from
Apr 29, 2024

Conversation

Gadgetoid
Copy link
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

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
8 checks passed
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