Snake eyes GPIO button

EL Wire/Tape/Panels, LEDs, pixels and strips, LCDs and TFTs, etc products from Adafruit

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
Jacques_Olivier
 
Posts: 5
Joined: Tue Sep 22, 2020 3:43 pm

Snake eyes GPIO button

Post by Jacques_Olivier »

Hi,

I am using a snake Eyes Bonnet on PI 3.
I want to use a push button to power off the PI.

In the https://learn.adafruit.com/animated-sna ... stallation it is said :
The GPIO-halt utility performs an orderly shutdown using a momentary pushbutton between an unused GPIO pin and ground, no login required.
But i don't know wich pin i can use exactly and how i connect my button, can you help me on this ?

User avatar
mikeysklar
 
Posts: 13979
Joined: Mon Aug 01, 2016 8:10 pm

Re: Snake eyes GPIO button

Post by mikeysklar »

On the pi 3 (a 40-pin PI) it will be GND and GPIO21.

Detailed instructions and code here:

https://www.recantha.co.uk/blog/?p=13999
https://github.com/adafruit/Adafruit-GPIO-Halt

Locked
Please be positive and constructive with your questions and comments.

Return to “Glowy things (LCD, LED, TFT, EL) purchased at Adafruit”