PiSupply / PaPiRus

Resources for PaPiRus ePaper eInk displays
https://www.pi-supply.com/product/papirus-epaper-eink-screen-hat-for-raspberry-pi/
Other
346 stars 88 forks source link

Button example+root check #79

Closed tvoverbeek closed 7 years ago

tvoverbeek commented 7 years ago

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

francesco-vannini commented 7 years ago

Thanks @tvoverbeek 👍