Hello,

I am trying to learn how to use libgpiod on a Pi 5. I created for that goal a simple circuit with a push button and 2 LEDs, one of which turns on on a button press.
Since I want to keep my program as modular as possible, I created a pinconfig function that configures the pins according to the parameters passed in main.
However, when trying to pass an enum array of gpiod_line_direction to the function, the code no longer works and the LEDs no longer turn on. I suspect it is due to the way the array is handled, but since this use case isn't shown in the examples and that online ressources seems to only talk about v1 of gpiod, I'm a bit stuck.
Could someone help me? You'll find my code attached in a zip in this email.

Thanks in advance

Mathis Joussemet