Homepage 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

#122118
spaceinvader
Participant

I tried pressing and holding, and no way. I also tried putting “sudo sh” like in the test, and no way…

by the way skizz, I have noted that althogh getting the I/O error message, the script works, try testing it and pressing the shutdown button.