Unfortunately the libgpiod v2 didn't make it into the Debian that Pi OS is based on - even Bookworm. The Pi devs have indicated they are looking at packaging it for Pi OS, but in the meantime do yourself a favour and install libgpiod v2 from source. That is the official GPIO C and Python library for Linux and is as future proof as you are going to get. It is also portable to anything running Linux, so you aren't limiting yourself to running on Pis.
You can also install the latest Python bindings, v2.1.3 at time of writing, with `pip install gpiod`, as described in the libgpiod/bindings/python/README.md in the source.
If you just need command line tools then install the gpiod package. The one packaged for Pi OS is v1, but that will still work on all Pis, it just lacks some of the features of v2].
You can also install the latest Python bindings, v2.1.3 at time of writing, with `pip install gpiod`, as described in the libgpiod/bindings/python/README.md in the source.
If you just need command line tools then install the gpiod package. The one packaged for Pi OS is v1, but that will still work on all Pis, it just lacks some of the features of v2].
Statistics: Posted by warthog618 — Wed Mar 27, 2024 5:10 am