It's not clear, but from the photo it looks very much like the green wire (button) is connected to header Pin 3 - which is actually GPIO8, not GPIO3.
GPIO3 is header pin # 15.
Plus you mention you've connected a capacitor between 5 & 6. Pin 5 is GPIO9.
So, potentially the bug could be that the button is connected to GPIO 8, the capacitor is connected to GPIO9, and the script is controlling GPIO3, which is not connected to anything at all.
GPIO3 is header pin # 15.
Plus you mention you've connected a capacitor between 5 & 6. Pin 5 is GPIO9.
So, potentially the bug could be that the button is connected to GPIO 8, the capacitor is connected to GPIO9, and the script is controlling GPIO3, which is not connected to anything at all.
Pi-4B[1GB] with Allo DigiOne SPDIF
'This is the time. And this is the record of the time.'
'This is the time. And this is the record of the time.'