<div dir="ltr"><div><div><div><div>BTW - Forgot to add:<br></div>I did read through this thread (as mentioned by Charles):<br><a href="http://www.raspberrypi.org/phpBB3/viewtopic.php?f=29&amp;t=9667&amp;p=198848">http://www.raspberrypi.org/phpBB3/viewtopic.php?f=29&amp;t=9667&amp;p=198848</a><br>
</div>And left none the wiser...<br></div>Seemed to me that there are several possible implementations, though I am completely unsure as to which one would work with the /sys/class/gpio/ method that [gpio] makes use of?<br>
<br></div><div>I think I&#39;m going to be asking several possibly dumb questions around gpio until I can get my head around all this so apologies up-front.<br><br></div><div>Julian<br></div><div><br></div>J<br><div><div>
<div><br></div></div></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On 2 April 2013 09:46, Julian Brooks <span dir="ltr">&lt;<a href="mailto:jbeezez@gmail.com" target="_blank">jbeezez@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div><div><div><div><div>Hi Charles / list,<br><br></div>Can I ask you/anyone a question re: permissions for accessing the gpio pins please?<br>
<br></div>Currently I can&#39;t get past:<br>&quot;echo gpio17 &gt; /sys/class/<span>gpio</span>/export&quot;<br>

</div>which gives me &quot;permission denied&quot; with everything I&#39;ve tried.<br><br></div>Are you using WiringPi to allow access to the gpio and if not how?<br><br></div>I&#39;d like to stick with Miller&#39;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></div><div>
and keep as much within Pd as possible.<br><br>Best wishes,<br></div><br></div>Julian<br></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><br><div class="gmail_quote">On 28 January 2013 14:14, Charles Goyard <span dir="ltr">&lt;<a href="mailto:cg@fsck.fr" target="_blank">cg@fsck.fr</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">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 &gt; /sys/class/gpio/export<br>
echo out &gt; /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&#39;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&#39;m very happy ;).<br>
<span><font color="#888888"><br>
<br>
--<br>
Charles<br>
</font></span><div><div><br>
_______________________________________________<br>
<a href="mailto:Pd-list@iem.at" target="_blank">Pd-list@iem.at</a> mailing list<br>
UNSUBSCRIBE and account-management -&gt; <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>
</div></div></blockquote></div><br></div>