Hi there!
Patchbox (the 2024 version) is installed on my Raspberry Pi 3B v1.2. I can reach it with ssh.
I’d like to know how to use buttons connected to GPIOs to trigger an action in PureData.
I saw WiringPi but it doesn’t seem to be maintained.
Is this any another way to do it?
I don’t know which is the most current way to access the GPIOs via PD, but you should look for Linux externals that provide GPIO access through /sys/class/gpio or /dev/gpiochip* (usually via libgpiod or gpiod utilities). This does not depend on Patchbox OS, so any generic Linux information should apply.
If you know how to work with an executable via PD, then you could wrap gpiomon - it prints to std output every time a monitored pin changes. It can monitor more than one pin at once too.