I've got a problem with my circuit builded with my raspberry pi B rev 1. I've got a button which press triggers a function in python, triggered with the line
GPIO.add_event_detect(7, GPIO.FALLING, callback=my_callback, bouncetime=300)
This function change the status of a variable (from 1 to 0 and viceversa) and change the power of two led (1 green led on, red led off, 0 green led off, red led on). But when I accidentally touch a pin of one of the 2 leds, the function are triggered without pressing the button.
The scheme of the circuit is here: https://mega.nz/#!RAoy0b6R!kFVgyj4iJrY7 ... qux1vcwjik
The leds are placed in a led holder, touching it, the pressing of button are simulated.
What can I do to solve the problem ?