vsergeev / python-periphery

A pure Python 2/3 library for peripheral I/O (GPIO, LED, PWM, SPI, I2C, MMIO, Serial) in Linux.
MIT License
519 stars 139 forks source link

GPIO.poll() does not accept timeout to be None #29

Closed povik closed 4 years ago

povik commented 5 years ago

At least in Python 2.7, GPIO.poll() triggers a TypeError if timeout is left at None. To block forever, -1 appears to work.