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

Add PIO implementation of rotaryio for the Pi 5 #941

Merged
merged 3 commits into from
Feb 18, 2025

Conversation

makermelissa
Copy link
Collaborator

When I was originally tasked with adding rotaryio, this was because @jepler had requested it for the purposes of testing out the PIO implementation. I had written a generic one that worked with any linux board using threading.

This PR adds the PR implementation for the Pi 5 and falls back to the generic implementation for any other linux board. In order to test, a couple extra things need to be in place.

  1. The PIO setup and permissions needs to be done as in https://learn.adafruit.com/circuitpython-on-raspberrypi-linux/using-neopixels-on-the-pi-5.
  2. The adafruit_pioasm and adafruit_rp1pio libs needs to be installed with: pip install Adafruit-Blinka-Raspberry-Pi5-Piomatter adafruit-circuitpython-pioasm

@makermelissa makermelissa requested a review from a team February 11, 2025 21:15
Copy link
Member

@jepler jepler left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you! Looks good, didn't test.

Also, I just released the rp1pio version that allows up to 4 encoders.

@jepler jepler merged commit c23dc24 into adafruit:main Feb 18, 2025
1 check 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.

2 participants