Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 8082

General discussion • Re: GPIO.wait_for_edge >>> RuntimeError: Error waiting for edge

$
0
0
Solution: Don't use wait_for_edge

Instead

def wait_for_it():
level = GPIO.input(23)
while (GPIO.input(23)) :
time.sleep(.01)

Statistics: Posted by Alan_Winslow — Thu Mar 14, 2024 9:43 pm



Viewing all articles
Browse latest Browse all 8082

Trending Articles