The code wasn't working on a Raspberry Pi 2 since the used Gertboard code (gb_common) uses hard-coded memory addresses to access the GPIOs. And the memory mapping has changed between Pi 1 and Pi 2.
This adds an explanation and adds a correct address (commented out) for the Raspberry Pi 2 to gb_common.c. It also fixes the Makefile to recompile gb_common.c.
The code wasn't working on a Raspberry Pi 2 since the used Gertboard code (gb_common) uses hard-coded memory addresses to access the GPIOs. And the memory mapping has changed between Pi 1 and Pi 2.
This adds an explanation and adds a correct address (commented out) for the Raspberry Pi 2 to gb_common.c. It also fixes the Makefile to recompile gb_common.c.