[PD] gpio on the raspberry pi from within pd ?

Julian Brooks jbeezez at gmail.com
Tue Apr 2 10:46:36 CEST 2013


Hi Charles / list,

Can I ask you/anyone a question re: permissions for accessing the gpio pins
please?

Currently I can't get past:
"echo gpio17 > /sys/class/gpio/export"
which gives me "permission denied" with everything I've tried.

Are you using WiringPi to allow access to the gpio and if not how?

I'd like to stick with Miller's [gpio] object
http://crca.ucsd.edu/~msp/syllabi/206.13w/index.htm
(found in the earlier split thread - apologies for the noise)
and keep as much within Pd as possible.

Best wishes,

Julian


On 28 January 2013 14:14, Charles Goyard <cg at fsck.fr> wrote:

> Hi list,
>
> I could make use of gpio (as output) within pd with just [textfile] :
>
> on the command-line:
>
> echo gpio17 > /sys/class/gpio/export
> echo out > /sys/class/gpio/gpio17/direction
> chown charles /sys/class/gpio/gpio17/value
>
> inside pd:
>
> [ set 1 (  [ write /sys/class/gpio/gpio17/value cr (
> |
> [ textfile ]
>
> works.
>
>
> I use it to drive a light system from a track of a audio file containing
> only square waves at a given frequency (say, cues embedded inside an
> audio file).
>
> I basically snapshot~ and see if it's over or below 0, and turn the gpio
> on/off on change.
>
> I started using pd on the pi three hours ago and have it playing audio and
> banging the gpio in no time.
>
> Thanks to all for this wonderful community.
>
> I'm very happy ;).
>
>
> --
> Charles
>
> _______________________________________________
> Pd-list at iem.at mailing list
> UNSUBSCRIBE and account-management ->
> http://lists.puredata.info/listinfo/pd-list
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20130402/a69f7f42/attachment.htm>


More information about the Pd-list mailing list