Am Dienstag, dem 12.03.2024 um 07:53 +0100 schrieb Luca Bertoncello:
> 
[..]
> Hier die Funktion mit dem Problem:
> 
>          GPIO.setup(speakerPIN, GPIO.OUT)
>          GPIO.setup(key2PIN, GPIO.IN, pull_up_down = GPIO.PUD_UP)
>          GPIO.setup(key3PIN, GPIO.IN, pull_up_down = GPIO.PUD_UP)
>          GPIO.add_event_detect(key2PIN, GPIO.BOTH, callback=key2Cb, 
> bouncetime=300)
>          GPIO.add_event_detect(key3PIN, GPIO.BOTH, callback=key3Cb, 
> bouncetime=300)
> 
> Und das Problem kommt genau bei der Zeile mit dem add_event_detect() und 
> zwar mit dem Fehler "RuntimeError: Failed to add edge detection".
> 
> Hat jemand eine Ahnung, was plötzlich passiert ist und wie ich das lösen 
> kann?

https://sourceforge.net/p/raspberry-gpio-python/tickets/210/ ?

Gruß, Daniel

Antwort per Email an