I have been testing this on both a Raspberry Pi 3 and a Raspberry Pi 4 and I can only seem to get this to work with pin 7.
Other pins that I have tried are 11 and 13. I have tried connecting a jumper wire from the pin directly to ground and have tried connecting a 1k resistor. Work reliably on pin 7 but not on any of the other pins I have tried.
I am sure that I am doing something stupid here but I have no idea what.
I have been testing this on both a Raspberry Pi 3 and a Raspberry Pi 4 and I can only seem to get this to work with pin 7.
Other pins that I have tried are 11 and 13. I have tried connecting a jumper wire from the pin directly to ground and have tried connecting a 1k resistor. Work reliably on pin 7 but not on any of the other pins I have tried.
I am sure that I am doing something stupid here but I have no idea what.