2020-02-18 14:24:20 -05:00
2020-02-18 13:49:17 -05:00
2020-01-29 15:31:29 -08:00
2017-05-10 09:13:20 -07:00
2020-02-18 14:24:20 -05:00

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

Description
No description provided
Readme 292 KiB
Languages
Shell 87.3%
Python 12.7%