JulianI'd like to stick with Miller's [gpio] objectAre you using WiringPi to allow access to the gpio and if not how?which gives me "permission denied" with everything I've tried.Currently I can't get past:Hi Charles / list,Can I ask you/anyone a question re: permissions for accessing the gpio pins please?
"echo gpio17 > /sys/class/gpio/export"
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,On 28 January 2013 14:14, Charles Goyard <cg@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@iem.at mailing list
UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list