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

Cannot start service on newer RPi platforms: update to pinctrl instead of using /sys/class/gpio directory #4

Open
jacoblapenna opened this issue Mar 28, 2024 · 1 comment

Comments

@jacoblapenna
Copy link

See pull request. You are using /sys/class/gpio to interact with GPIO25 in bash. /sys/class/gpio has been deprecated since 2015 and targeted for removal in 2020 (see here). pinctrl (see here) is the official Raspberry Pi util for command line manipulation and reading of GPIO. New Raspberry Pi OS versions will not support your current scripts (e.g., the Raspberry Pi 5).

I have submitted a tested PR to update to pinctrl. Please review and merge or provide comments for changes.

NOTE: I have forked and updated my own repo for my use. But because J4H officially points to this repo from their webpage, you should merge for others to use.

@jacoblapenna
Copy link
Author

See fork using pinctrl here in case this repo is no longer maintained.

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

No branches or pull requests

1 participant