[PD] GPIO -> Python (pyata) -> PD ?

Miller Puckette msp at ucsd.edu
Thu Feb 14 19:27:02 CET 2013


Alternatively, and perhaps a bit easier, you could grab my gpio object
from http://crca.ucsd.edu/~msp/syllabi/206.13w/index.htm - it's very 
unfinished, but basically you can use the "gpio" command to set the pins
up, then crank up Pd and use a |gpio| object to read or write them - it
works through the /sys/class/gpio/ mechanism and is fine for rates up to
about 1000 per second (so it's limited by Pd's scheduling resolution).

cheers
Miller

On Thu, Feb 14, 2013 at 05:26:20PM +0000, João de Brito Rocha Reis Vidigal wrote:
> Hi guys!
> Is it too stupid to assume that I can get control of the GPIO via python and send the data to PD via pyata!?
> All I really need is to read a pushbutton!
> 
> tks
> JV
> _______________________________________________
> Pd-list at iem.at mailing list
> UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list



More information about the Pd-list mailing list