I'd like to use some special pins like 5 (scl) and 12 (pcm_clk)as regular pins to read from them. I made a circuit as shown here:
and setup all connected pins like this:
GPIO.setup(pin, GPIO.IN, pull_up_down=GPIO.PUD_DOWN) GPIO.add_event_detect(pin, GPIO.RISING, callback=onTrigger, bouncetime=700)
All regular pins are Ok, but pins 5 and 12 continuously invoke onTrigger function with closed switches despite I set big bouncetime. How can I fix this?