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
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@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
... and oops, I see that the thread got split - on the other thread, the solution from jack at rybn.org (using built-in Pd objects, notably |textfile|) also works, and is certainly the easiest way to get started.
cheers Miller
On Thu, Feb 14, 2013 at 10:27:02AM -0800, Miller Puckette wrote:
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@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
I can't seem to be able to install the externals package! keeps returning:
gpio: can't load library
how dum am I being here!?
On 14 Feb 2013, at 19:00, Miller Puckette wrote:
... and oops, I see that the thread got split - on the other thread, the solution from jack at rybn.org (using built-in Pd objects, notably |textfile|) also works, and is certainly the easiest way to get started.
cheers Miller
On Thu, Feb 14, 2013 at 10:27:02AM -0800, Miller Puckette wrote:
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@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
On 02/15/2013 03:00 PM, João de Brito Rocha Reis Vidigal wrote:
I can't seem to be able to install the externals package! keeps returning:
gpio: can't load library
where did you put the gpio.l_arm? which Pd-version are you using? the one packaged with debian currently does not recognize the "l_arm" extension on the RPi-platform; you might want to rename the file to gpio.pd_linux on such a system
fgamsdr IOhannes