chiz wrote:@Popcorn
Thanks for pursuing and sharing this! I didn't have the time to go back to my set-up and I don't think I need to since you already cracked it.
Do you mind if you can post the exact pin connections? As you know since I removed the even-numbered GPIO pins on my RPi2 I'm wondering if your set-up can work on the odd-numbered pins as well.
Hey @chiz,
Thanks! Yeah, based on the tip from @Masato, I changed my setup to use GPIO 8 / BCM 14 - UART TX which seems to provide a stable High state from the moment of power on. This way we don't have to wait for the OS to boot up, and for the GPIO pins to initialize and set as an output.
But previous to that, I was running it on GPIO 27 / BCM 13 as an output and it was working fine. Was killing the signal on shutdown which tripped the switch off. You would be able to do this no problem, since it's an odd numbered port.
Pins 7, 11, and 13 are ripe for the picking and Pin 9 is a ground and is closeby too.
And another benefit of picking those ports is that there's no conflict with @prerunnerseth's guide on wiring up the gamepad to GPIO, so you can run power AND control the gamepad from GPIO at the same time, if you like.
In the next days, I'll get all the listener daemon code setup and will post it here.