Tries to access GPIO through the new /dev/gpiomem device in Raspbian. Allows library to be used without root permissions in Raspbian versions which support this.
Falls back to previous (i.e. root-only /dev/mem) behaviour when the newer device is not present.
Tries to access GPIO through the new /dev/gpiomem device in Raspbian. Allows library to be used without root permissions in Raspbian versions which support this.
Falls back to previous (i.e. root-only /dev/mem) behaviour when the newer device is not present.
Fixes: #84