-
Notifications
You must be signed in to change notification settings - Fork 581
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
Unable to set pin mode on pi5 #2300
Comments
That's kind of expected, since we do not have full support for the pi 5 yet. You need to manually select the driver (either libgpiod or sysfs) |
There may have been a regression, related to the pi 5, with version 3.1.0 as the gpio seems to function normally in 3.0.0. The above code runs without error and properly reads the pins. I haven't tested all of the gpio pins but have tried several of them without issue. Given the 5 is still fairly new, I can go back to testing with a 4 for now. |
We have added partial support for the Pi5 in 3.1.0 (IIRC), but you should get it to work by calling
|
This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment. |
Describe the bug
After updating to version 3.1.0, I am unable to read or set modes on gpio pins on the raspberry pi 5. The library works properly when reverting to 3.0.0.
Error Message: Unhandled exception. System.IO.IOException: Error setting pin mode, for pin: 4, error: 16.
Steps to reproduce
Expected behavior
The pin should set and be readable.
Actual behavior
The pin does not get set and the error message is thrown.
Versions used
The text was updated successfully, but these errors were encountered: