papirus-buttons: Automatic detection of either Papirus-HAT or Papirus-zero.
Adjust switch definitions accordingly.
Papirus zero switch definitions were reversed in PR #54.
All examples: Add automatic detection when needing to run as root.
On Raspbian Jessie root is not needed since the GPIOs can be accessed by the pi user.
papirus-twitter: Runs now also on HAT. Uses same HAT/zero detection as in papirus-buttons.
Some refactoring and clean-up
This PR improves on / replaces PR #54.
papirus-buttons: Automatic detection of either Papirus-HAT or Papirus-zero. Adjust switch definitions accordingly. Papirus zero switch definitions were reversed in PR #54.
All examples: Add automatic detection when needing to run as root. On Raspbian Jessie root is not needed since the GPIOs can be accessed by the pi user.
papirus-twitter: Runs now also on HAT. Uses same HAT/zero detection as in papirus-buttons. Some refactoring and clean-up