Skip to content

cavonlee/Pi_Power_Button

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Raspberry Pi Power button

=========

What you need:

  1. A button
  2. female header
  3. A resister

Step:

Process on Pi

  1. unzip the zip
  2. open /etc/rc.local with nano
    1. sudo nano /etc/rc.local
  3. add codes below in front of the final line: exit 0 * sudo nohup python /home/pi/Pi_Power_Button/poweroffbut.py & sudo nohup python /home/pi/Pi_Power_Button/rebootbut.py & exit 0
  4. Ctrl + X to exit, remember to press y to save.
  5. Reboot.
  6. Circuit:

About

A power button for Raspberry Pi to shutdown or reboot

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages