GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - Arduino3128/PiButton: This is a simple Python Code for Raspberry Pi which allows User to "Shutdown" and "Reboot" their Pi using a physical button.

BranchesTags
Open more actions menu

Latest commit

 

History

20 Commits
20 Commits

Folders and files

NameName
Last commit message
Last commit date
PiButton.py
PiButton.py
 
 
PiButton.sh
PiButton.sh
 
 
README.md
README.md
 
 
_config.yml
_config.yml
 
 

Repository files navigation

PiButton

This is a simple Python Code for Raspberry Pi which allows User to "Shutdown" and "Reboot" their Pi using a physical button.
Installation process:
1.Move the PiButton.py to /usr/local/bin/
mv PiButton.py /usr/local/bin/
2.Move the PiButton.sh to /etc/init.d/
mv PiButton.sh /etc/init.d/
3.Add the following line to the /etc/rc.local to run the code at Boot.
sudo /etc/init.d/PiButton.sh start

Button Connection:

Connect a Button between GPIO Pin 17 and Ground.

Usage:

Pressing and holding the button for 3 Seconds reboots Raspberry Pi.
Short press shutdowns Raspberry Pi after 3 Seconds.

About

This is a simple Python Code for Raspberry Pi which allows User to "Shutdown" and "Reboot" their Pi using a physical button.

Topics

button-controlpibuttonraspberry-piraspberry-pi-3raspberry-pi-gpioraspberrypirebootshutdown

Resources

Readme
Activity

Stars

3 stars

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.