Skip to content

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

License

Notifications You must be signed in to change notification settings

fletsche/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

  • Python 100.0%