The earlier version is basically deprecated. You need 2.x.x, and, in the case of Python, run it in a venv so you can use the later version, not the OS packaged version.The subject says it all.
RPi distributes gpiod 1.6.3, both for C and Python. The only docs I can find are for 2.x.x.
I played around with some examples here.
https://github.com/brgl/libgpiod/tree/m ... n/examples
I wouldn't say it's user-friendly, but it is platform agnostic (and Pi 5 compatible) so it's a good choice, maybe the best choice, going forward.
Statistics: Posted by ame — Mon Jun 09, 2025 9:03 am