Skip to content

gilyes/pi-shutdown

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages