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

Remove need for GPIO memory offset by using /dev/gpiomem #7

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mriale
Copy link

@mriale mriale commented Mar 22, 2018

The previous version failed to run successfully on a Raspberry Pi 3 Model B because the memory location of the GPIO pins changed, and the program hard-coded the value.

This patch uses /dev/gpiomem so no hard-coded offset is needed. This allows the same code and executable to run on all generations of the Raspberry Pi. I have tested it successfully with:

  • Raspberry Pi Model B
  • Raspberry Pi 2 Model B
  • Raspberry Pi 3 Model B

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