Go to file
Zach Levine 14fa0aee36
Merge pull request #15 from Howchoo/feature/documentation
Feature/documentation
2020-02-18 16:14:10 -05:00
diagrams Add hardware pinout diagram 2020-02-18 13:49:17 -05:00
script Make uninstall script executable 2020-01-29 15:31:29 -08:00
README.md Document hardware info in README 2020-02-18 14:24:20 -05:00
listen-for-shutdown.py Enabling internal pull-up resistor 2017-06-25 18:26:49 +03:00
listen-for-shutdown.sh make executable 2017-05-10 09:13:20 -07:00

README.md

pi-power-button

Scripts used in our official Raspberry Pi power button guide.

Installation

  1. Connect to your Raspberry Pi via SSH
  2. Clone this repo: git clone https://github.com/Howchoo/pi-power-button.git
  3. Run the setup script: ./pi-power-button/script/install

Uninstallation

If you need to uninstall the power button script in order to use GPIO3 for another project or something:

  1. Run the uninstall script: ./pi-power-button/script/uninstall

Hardware

A full list of what you'll need can be found here. At a minimum, you'll need a normally-open (NO) power button, some jumper wires, and a soldering iron. If you don't have a soldering iron or don't feel like breaking it out, you can use this prebuilt button instead.

Connect the power button to Pin 5 (SCL) and Pi 6 (GND) as shown in this diagram:

Connection Diagram