Closed t1ngyu closed 3 years ago
timeout
None
the pin number
So, modify the code as following:
return GPIO.wait_for_edge(self.irq_pin, GPIO.FALLING, timeout=timeout) == self.irq_pin
Hello @jpbarraca, I seem to have an invalid syntax SyntaxError when installing the library with python. The issue appears on line 328. Reverting this line to the previous revision seems to work better.
timeout
argument must used as keyword argument, otherwise it will no effect.None
for timeout, orthe pin number
for edge detected.So, modify the code as following: