You could try disabling the button, in case you are getting interference triggering it.
Remove this, or comment it out:
Remove this, or comment it out:
Code:
try: # Add event detection for the button press GPIO.add_event_detect(Button, GPIO.RISING, callback=button_callback, bouncetime=200)
Statistics: Posted by ame — Mon Nov 11, 2024 5:43 pm