jrsouza95 / pi-shutdown

Shutdown/reboot(/power on) Raspberry Pi with pushbutton

Home Page:https://gilyes.com/pi-shutdown-button/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

pi-shutdown

Shutdown/reboot(/power on) Raspberry Pi with pushbutton

Usage:

Connect pushbutton to GPIO pin 5 and ground then run:

sudo python pishutdown.py

When button is pressed for less than 3 seconds, Pi reboots. If pressed for more than 3 seconds it shuts down. While shut down, if button is connected to GPIO pin 5, then pressing the button powers on Pi.

About

Shutdown/reboot(/power on) Raspberry Pi with pushbutton

https://gilyes.com/pi-shutdown-button/


Languages

Language:Python 100.0%