https://github.com/beeven/raspberrypirebootbutton
Monitor GPIO button to switch between LCD and HDMI then reboot or shutdown.
https://github.com/beeven/raspberrypirebootbutton
gpiozero rpi
Last synced: 12 months ago
JSON representation
Monitor GPIO button to switch between LCD and HDMI then reboot or shutdown.
- Host: GitHub
- URL: https://github.com/beeven/raspberrypirebootbutton
- Owner: beeven
- Created: 2019-02-20T11:42:56.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-06-13T17:44:14.000Z (almost 7 years ago)
- Last Synced: 2025-03-18T01:53:58.758Z (about 1 year ago)
- Topics: gpiozero, rpi
- Language: Python
- Size: 1.95 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# RaspberryPiRebootButton
## How to install
1. Place `screen_btn.py` and `screen-btn.service` file to somewhere like `/usr/share/screen-btn/`.
2. Update `screen-btn.service`, replace `ExecStart` with the correct path.
3. Link `screen-btn.service` to `/etc/systemd/system/`.
4. Enable `screen-btn.service` with systemctl.
## How to use
* Press button on BCM22 for 5 seconds to reboot.
* Press button on BCM27 for 10 seconds to shutdown.
* Press buttons on BCM22 and BCM27 simultaneously for 5 seconds to switch output between LCD and HDMI and reboot.
* Double click button on BCM22 to toggle wifi power.