Reply To: Simple 1 button GPIO on off switch: 1 switch, 2 wires, 10 lines of code

Welcome Page Forums RetroPie Project GPIO Adapter, ControlBlock etc. Simple 1 button GPIO on off switch: 1 switch, 2 wires, 10 lines of code Reply To: Simple 1 button GPIO on off switch: 1 switch, 2 wires, 10 lines of code

#122165
Profile photo of skizz
skizz
Participant

I got mine to work with both shutting down and booting up the the Pi so kiwijam777’s code works.

How are you shorting the two pins spaceinvader? I have a momentary button that I will solder on today but I used this to test last night at least.

Hopefully you can get it going

Skip to toolbar