daviderovell0 / bzzzbz

Digital video synthesizer for live music performance! powered by Raspberry pi + OpenGL
https://twitter.com/bzzzbz_video
GNU General Public License v3.0
47 stars 4 forks source link

GPIO interface: sysfs deprecated, move to libgpiod #68

Open daviderovell0 opened 2 years ago

daviderovell0 commented 2 years ago

At the moment we use the sysfs method to interact with GPIOs via the gpio-sysfs.h class. The interface is now old and deprecated, it should be replaced with something else. The best alternatives seems to be libgpiod, a C library coming with CLI utility tools that has been added to the Linux Kernel and therefore seems to be the safest in term of future support. Plus it doesn't add extra dependencies.

libgpiod in kernel.org: https://git.kernel.org/pub/scm/libs/libgpiod/libgpiod.git/about/

Useful info and discussions: