Use pd-l2ork. It comes with disis_gpio and disis_spi (for analog inputs, like the ones found on Lots-of-Pots shield) which should cover all your needs. It includes both hardware and software PWM, as well as all the usual I/O GPIO stuff.

Best,

Ico
-- 
Ivica Ico Bukvic, D.M.A.
Director, Creativity + Innovation Director, Human-Centered Design iPhD Institute for Creativity, Arts, and Technology
Virginia Tech
Creative Technologies in Music
School of Performing Arts – 0141
Blacksburg, VA 24061
(540) 231-6139
ico@vt.edu

ci.icat.vt.edu
l2ork.icat.vt.edu
ico.bukvic.net


On Wed, Nov 8, 2023 at 10:14 AM Patco <colet.patrice@gmail.com> wrote:
Hello,

  an alternative is about using a python script that communicate with PureData through OSC, it can be done with abstractions on pd side and examples provided by python users.

Best regards,

patco

> Le 8 nov. 2023 à 15:14, Yann Seznec <yann@yannseznec.com> a écrit :
>
> Hello,
>
> I’m wondering what the best option is nowadays for using the GPIO pins on a Raspberry Pi in Pure Data.
>
> Wiring Pi seems to be no longer available, as far as I can tell. I’m not sure what other options there are?
>
> One option suggested elsewhere for inputs was to use the “retrogame” script to turn GPIO pin activity into keyboard presses and use the [key] object in Pd, but I can’t seem to get that script to work properly yet.
>
> Any suggestions would be great, thanks in advance.
>
> Yann
>
>
> _______________________________________________
> Pd-list@lists.iem.at mailing list
> UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list




_______________________________________________
Pd-list@lists.iem.at mailing list
UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list