Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Shutdown button #48

Closed
sgrunt91 opened this issue May 4, 2020 · 2 comments
Closed

Shutdown button #48

sgrunt91 opened this issue May 4, 2020 · 2 comments

Comments

@sgrunt91
Copy link

sgrunt91 commented May 4, 2020

Hello,
I've successfully installed the Hyperpixel 4 screen, thanks a lot for your work !

But I've a little question, is it possible to use a GPIO pin to wire button that start a safe shutdown script ? or all the pins are used by the screen ?
If not, how do you do to safe shutdown the Pi with a button and hyperpixel ?

Regards,
Sgrunt

@Gadgetoid
Copy link
Member

Every single pin is used, I'm afraid, though you might have some luck grabbing BCM 26 shortly after boot (you'll have to delay for a few seconds, or make sure whatever starts up your script checks that the hyperpixel4-init systemd unit has run first), pulling it high with the internal pull-up and connecting to ground via a push button.

BCM 26 is "LCD Program Data" which is the data pin of the SPI connection used to set up the LCD. Once the LCD is set up, however, it's "unused". That's so say, the Pi doesn't actively drive it, but it's still connected to the LCD.

@baesek
Copy link

baesek commented Nov 24, 2021

Hello, I've successfully installed the Hyperpixel 4 screen, thanks a lot for your work !

But I've a little question, is it possible to use a GPIO pin to wire button that start a safe shutdown script ? or all the pins are used by the screen ? If not, how do you do to safe shutdown the Pi with a button and hyperpixel ?

Regards, Sgrunt

Hey would you share the script you came up with to use a Shutdown Button with the hyperpixel on GPIO 26? I am having the exact same problem right now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants