We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When running the pwm-backlight.py and pygame-button-interrupt.py demos, I got the following error:
pwm-backlight.py
pygame-button-interrupt.py
Traceback (most recent call last): File "/home/thomas/displayhatmini/displayhatmini-python/examples/pwm-backlight.py", line 43, in <module> displayhatmini.on_button_pressed(button_callback) File "/home/thomas/displayhatmini/env/lib/python3.11/site-packages/displayhatmini/__init__.py", line 99, in on_button_pressed GPIO.add_event_detect(pin, GPIO.BOTH, callback=callback) RuntimeError: Failed to add edge detection
I was able to solve it by running:
sudo apt remove python3-rpi.gpio python -m pip install rpi-lgpio
(while my venv was active) (source).
Perhaps worth updating at least the readme if this is not directly fixable in the examples.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
When running the
pwm-backlight.py
andpygame-button-interrupt.py
demos, I got the following error:I was able to solve it by running:
(while my venv was active) (source).
Perhaps worth updating at least the readme if this is not directly fixable in the examples.
The text was updated successfully, but these errors were encountered: