Work with multiple pi versions

This change makes sure that the gpio pins match the version of the Raspberry Pi it is running on