I am running a shell with a python script that is monitoring a physical button
That works just fine and the MenuButton function is being called when the button gets pressed and released.
Code: Select all
GPIO.setmode(GPIO.BOARD) GPIO.setup(37, GPIO.IN, pull_up_down = GPIO.PUD_DOWN) GPIO.add_event_detect(37, GPIO.RISING, callback=MenuButton, bouncetime=300)
Now, for testing purposes, I want to trigger the RISING event from the outside our of another shell / script. The problem is that the GPIO port seems to be exclusive to a single script running, or?
Any thoughts how to get this done are greatly appreciated!