WaveShare 2.7" GPIO Buttons

Hi Guys,

I’m trying to get the buttons of the Waveshare 2.7" e-paper hat working with the GPIO plugin only without luck. If i follow the schematics the buttons are connected to pin 29, 31, 33, and 35 of the raspberry But i get nothing. Someone have the golden tip?

GPIO Plugin config
gpio_buttons:
enabled: true
#The following is a list of the GPIO number for your button, and the command you want to run when it is pressed
gpios:
gpio_buttons:
enabled: true
#The following is a list of the GPIO number for your button, and the command you want to run when it is pressed
gpios:
5: ‘touch /root/.pwnagotchi-auto && systemctl restart pwnagotchi’ #BCM pin 5 - name of pin by https://www.raspberrypi.org/documentation/usage/gpio/
21: ‘touch /root/.pwnagotchi-auto && systemctl restart pwnagotchi’ #Wiring Pi pin 21 - Name of GPIO Pin Found online someware
29: ‘touch /root/.pwnagotchi-auto && systemctl restart pwnagotchi’ #Physical pin 29

Schematic of screen
https://www.waveshare.com/w/upload/2/2a/2.7inch_e-Paper_HAT_Schematic.pdf

Stupid me… you need to wait untill everything is started… :crazy_face:

gpio_buttons:
enabled: true
#The following is a list of the GPIO number for your button, and the command you want to run when it is pressed
gpios:
5: ‘touch /root/.pwnagotchi-5’ #
6: ‘touch /root/.pwnagotchi-6’ #
13: ‘touch /root/.pwnagotchi-13’ #
19: ‘touch /root/.pwnagotchi-19’ #

1 Like

Greetings!

I posted: Waveshare27inch screen

since you mentioned the 2.7inch e-paper hat. I was wondering if you experienced the same issues I have.

Any thoughts ? Can you share your config.yml ?

thanks

I don’t have the same issue with my screen. I use a pi zero for the setup. But yeah i will add the config when i’m home. Don’t have the config on me right now.

And here is my config: https://bitbucket.org/snippets/WaaaghNL/kn996B

Thank you for sharing your config!!

Yeah, same settings for UI:display and it rolls.

I’ll update my original post with a short video to show what it is doing. Might be normal ?

thanks again.

Where are the buttons on the Screen? how do these work?

They are on de leftside of te screen (gpio connector on de back on the bottom). And you can use them to execute commands to the PI. I use them to switch mode and shutdown the PI

1 Like