Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Button example+root check #79

Merged
merged 3 commits into from Mar 15, 2017
Merged

Button example+root check #79

merged 3 commits into from Mar 15, 2017

Conversation

tvoverbeek
Copy link
Contributor

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

definitions accordingly. Exit script when SW1 and SW2 pressed simultaneously.

all examples: Do not prompt for root when /dev/gpiomem exists
(introduced with Raspbian Jessie)

python-twitter: Modified so it also works with HAT. Same HAT detection
as in papirus-buttons. Some cleanup.
@francesco-vannini
Copy link
Contributor

Thanks @tvoverbeek 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants