mmoller2k / pikeyd

Universal Raspberry Pi GPIO keyboard daemon
112 stars 36 forks source link

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

Open mriale opened 6 years ago

mriale commented 6 years ago

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: