There's the gpiod library, which has advantages and disadvantages. One is that the version included with bookworm is the old v1 library (confusingly has a package version 2.x), which has been completely changed for the v2 library (of course that is package version 3.x) which will be available in trixie, or you can build from source. It has the advantage of compatibility across platforms, but is not great when accurate timing is required.
pinctrl uses a gpiolib library which drives the pins directly. Simpler and faster. I haven't found any documentation on how to use it yet, but the source is on github along with pinctrl, so you can see how it works.
pinctrl uses a gpiolib library which drives the pins directly. Simpler and faster. I haven't found any documentation on how to use it yet, but the source is on github along with pinctrl, so you can see how it works.
Statistics: Posted by rpdom — Sun Jul 20, 2025 9:02 am