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

Port to lgpio as a wiringPi replacement #78

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

tomwardill
Copy link

wiringPi is deprecated and removed from the repos.
Also, it is not usable on a Pi5 due to the new GPIO chip and interface.

Instead, remove the use of wiringPi and use lgpio http://abyz.me.uk/lg/lgpio.html.
This allows use on bullseye, bookworm, and in theory, future releases.

  • Convert the wiringPi calls
  • Change the pin definitions to match the lgpio names instead of wiringPi
  • Use lgpio compatible callbacks

Also, the paho mqtt library is now packaged in the repositories, so we can just install that and link against it, instead of building our own from source.

This has been lightly tested locally, and is recieving and parsing packets.
Apologies for the whitespace changes, my IDE got a bit carried away.

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.

1 participant