Skip to content

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