mqtt-io
mqtt-io copied to clipboard
gpiod: enable pullup/pulldown
This simple PR enables pullup/pulldown for gpiod, it's supported since python3-gpiod 1.5.2.
Note (independent from this PR)
The current code requires python3-gpiod <= 1.5.4, versions after 1.5.4 have completely changed the API. Hopefully, at least in my rasperry pi, pip seems to choose 1.5.4 instead of the latest versions. But it would be better to explicitly require python3-gpiod == 1.5.4.