This implementation uses libgpiod, which is the new recommended API for
dealing with GPIO from userland (sysfs is considered deprecated).
It does so by creating a thin wrapper in C++ that makes it easy to open a GPIO for reading and to read its state. It also exposes new flags for setting up to which GPIO the buttons are connected.
This implementation uses libgpiod, which is the new recommended API for dealing with GPIO from userland (sysfs is considered deprecated).
It does so by creating a thin wrapper in C++ that makes it easy to open a GPIO for reading and to read its state. It also exposes new flags for setting up to which GPIO the buttons are connected.
This still needs to be tested on hardware.