The kernel has a bit-banged SPI interface over GPIO driver, so far better to use that via the SPI APIs than to bitbang it from userspace.
I can't immediately see a generic overlay to enable it, but it's used by the Pimoroni HyperPixel displays
For direct GPIO usage, libgpiod really has to be the recommendation as it is the core library developed in parallel with the kernel interface.
It also has GPIO event handling (pigpio's use of "interrupt" was incorrect as you weren't in an interrupt context at all). See the examples, with watch_multiple_line_values.c probably being the most useful.
I can't immediately see a generic overlay to enable it, but it's used by the Pimoroni HyperPixel displays
For direct GPIO usage, libgpiod really has to be the recommendation as it is the core library developed in parallel with the kernel interface.
It also has GPIO event handling (pigpio's use of "interrupt" was incorrect as you weren't in an interrupt context at all). See the examples, with watch_multiple_line_values.c probably being the most useful.
Statistics: Posted by 6by9 — Sat May 04, 2024 8:39 am