<div dir="ltr"><div><div><div><div><div>Hey Charles,<br><br></div>Thanks for the prompt response.<br><br></div>After sudo bash I get:<br>root@raspberrypi:/home/pi# echo gpio17 > /sys/class/gpio/export<br>bash: echo: write error: Invalid argument<br>
<br></div><div>The previous commands I tried were sudo'ing everything and also 'sudo -i'.<br><br></div><div>OAN:<br></div><div><br></div>Dumb question #256<br></div>I'm presuming 'gpio17' is to allow access to pin 17 and not what was my first impression that gpio17 allows access to all 18 pins?<br>
<br></div>Best wishes,<br><br>Julian<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On 2 April 2013 10:35, Charles Goyard <span dir="ltr"><<a href="mailto:cg@fsck.fr" target="_blank">cg@fsck.fr</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Julian,<br>
<br>
The commands I gave and to be run as root.<br>
so:<br>
<br>
sudo bash<br>
<div class="im">echo gpio17 > /sys/class/gpio/export<br>
echo out > /sys/class/gpio/gpio17/direction<br>
chown charles /sys/class/gpio/gpio17/value<br>
</div>exit<br>
pd &<br>
<br>
Can you post the full command set you tried ?<br>
<br>
It seems there's an overall consensus on running pd (and all kinds of<br>
other stuff) as root on the pi. I don't agree with this but that's life<br>
and I don't use the pi much anyway.<br>
<br>
Cheers,<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Charles<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
Julian Brooks wrote:<br>
> Hi Charles / list,<br>
><br>
> Can I ask you/anyone a question re: permissions for accessing the gpio pins<br>
> please?<br>
><br>
> Currently I can't get past:<br>
> "echo gpio17 > /sys/class/gpio/export"<br>
> which gives me "permission denied" with everything I've tried.<br>
><br>
> Are you using WiringPi to allow access to the gpio and if not how?<br>
><br>
> I'd like to stick with Miller's [gpio] object<br>
> <a href="http://crca.ucsd.edu/~msp/syllabi/206.13w/index.htm" target="_blank">http://crca.ucsd.edu/~msp/syllabi/206.13w/index.htm</a><br>
> (found in the earlier split thread - apologies for the noise)<br>
> and keep as much within Pd as possible.<br>
><br>
> Best wishes,<br>
><br>
> Julian<br>
><br>
><br>
> On 28 January 2013 14:14, Charles Goyard <<a href="mailto:cg@fsck.fr">cg@fsck.fr</a>> wrote:<br>
><br>
> > Hi list,<br>
> ><br>
> > I could make use of gpio (as output) within pd with just [textfile] :<br>
> ><br>
> > on the command-line:<br>
> ><br>
> > echo gpio17 > /sys/class/gpio/export<br>
> > echo out > /sys/class/gpio/gpio17/direction<br>
> > chown charles /sys/class/gpio/gpio17/value<br>
> ><br>
> > inside pd:<br>
> ><br>
> > [ set 1 ( [ write /sys/class/gpio/gpio17/value cr (<br>
> > |<br>
> > [ textfile ]<br>
> ><br>
> > works.<br>
> ><br>
> ><br>
> > I use it to drive a light system from a track of a audio file containing<br>
> > only square waves at a given frequency (say, cues embedded inside an<br>
> > audio file).<br>
> ><br>
> > I basically snapshot~ and see if it's over or below 0, and turn the gpio<br>
> > on/off on change.<br>
> ><br>
> > I started using pd on the pi three hours ago and have it playing audio and<br>
> > banging the gpio in no time.<br>
> ><br>
> > Thanks to all for this wonderful community.<br>
> ><br>
> > I'm very happy ;).<br>
> ><br>
> ><br>
> > --<br>
> > Charles<br>
> ><br>
> > _______________________________________________<br>
> > <a href="mailto:Pd-list@iem.at">Pd-list@iem.at</a> mailing list<br>
> > UNSUBSCRIBE and account-management -><br>
> > <a href="http://lists.puredata.info/listinfo/pd-list" target="_blank">http://lists.puredata.info/listinfo/pd-list</a><br>
> ><br>
<br>
_______________________________________________<br>
<a href="mailto:Pd-list@iem.at">Pd-list@iem.at</a> mailing list<br>
UNSUBSCRIBE and account-management -> <a href="http://lists.puredata.info/listinfo/pd-list" target="_blank">http://lists.puredata.info/listinfo/pd-list</a><br>
</div></div></blockquote></div><br></div>