<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">On Jun 19, 2013, at 7:07 PM, Josh Downing wrote:</div></span></span></div><div><blockquote type="cite"><div dir="ltr">click "enable 1", "open 1", and then "output 0". </div></blockquote>ok.</div><div><blockquote type="cite"><div dir="ltr">No error messages but where should I expect to see the high/low state of GPIO 17? </div></blockquote><div>it should come out of the object into a number box or toggle as far as I can remember...</div><div>put a number box in the outlet of the gpio object.</div><div><br></div><div>J</div><br><blockquote type="cite"><div dir="ltr">Should this be reflected in the bang object in the script (white for low and black for high)?</div></blockquote><div><br></div><blockquote type="cite"><div dir="ltr">&nbsp;I have the poll input check box checked.&nbsp;When I toggle the voltage on GPIO 17 from 3.3V to GND I do not see anything change in the script. I am able to see the high/low state of the pin 17 change by using the "readall" command from LXTerminal so I know that I'm switching the voltage correctly on the right pin, just not seeing how I get this status in pure data using the gpio-help.pd script. Any thought on how I do this?<div>
<br></div><div style="">Sorry I have very little experience with pure data and am just learning.</div><div style=""><br>Thanks,<br>Josh</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Jun 19, 2013 at 11:17 AM, Jaime Oliver <span dir="ltr">&lt;<a href="mailto:jaime.oliver2@gmail.com" target="_blank">jaime.oliver2@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>you need to be root. <br><br>start pd with sudo. unless there is a more permanent solution by now?<br>
<br>best,<br><br></div>J<br></div><div class="gmail_extra"><div><div class="h5"><br><br><div class="gmail_quote">On Wed, Jun 19, 2013 at 6:02 PM, Josh Downing <span dir="ltr">&lt;<a href="mailto:jndowning@gmail.com" target="_blank">jndowning@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">Thanks for the help guys! So I deleted the "-m32" from the makefile and then everything seemed to build okay. I then added the correct path for the extension in pure data and loaded the "gpio-help.pd" patch without getting an error message. In the gpio-help.pd patch I would click "enable 1" and then click "open 1" and after clicking "open 1" I would get an error message: "/sys/class/gpio/gpio17/value: No such file or directory".<div>


<br></div><div>I then realized that I probably needed to install wiringPi. I downloaded this and installed it. However I would still get the previous error message within PD. I then decided to manually try to create the file using commands in LXTerminal. I did this using this command, "echo "17" |sudo tee /sys/class/gpio/export". I then noticed that the gpio17 folder and accompanying files were created. I was also able to correctly read the state of the pin using "gpio readall" command from LXTerminal.</div>


<div><br></div><div>I then loaded the "gpio-help.pd" file again in PD. Now once I click "open 1" instead of the no such file or directory error I get "/sys/class/gpio/gpio17/value: Permision denied" error. Is there someway I can use this GPIO library within the PD visual interface without getting permission denied errors? Also, shouldn't clicking "enable 1" within the gpio-help.pd patch create the "/sys/class/gpio/gpio17" folder and accompanying files? How can I get this to work within PD without having to run the commands from LXTerminal to create the folder/files? Do I need to somehow indicate to pure data the path of wirngPi?</div>


<div><br></div><div>Almost there! Really appreciate your guys patience with me and help on this!</div><span><font color="#888888"><div><br></div><div>Josh</div></font></span></div><div><div>
<div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Jun 19, 2013 at 6:31 AM, IOhannes m zmoelnig <span dir="ltr">&lt;<a href="mailto:zmoelnig@iem.at" target="_blank">zmoelnig@iem.at</a>&gt;</span> wrote:<br>


<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>-----BEGIN PGP SIGNED MESSAGE-----<br>
Hash: SHA1<br>
<br>
</div><div>On 2013-06-18 23:37, Josh Downing wrote:<br>
&gt;<br>
&gt;<br>
&gt; cc -DPD -O2 -funroll-loops -fomit-frame-pointer<br>
&gt; -fno-strict-aliasing -Wall -W -Wshadow -Wstrict-prototypes<br>
&gt; -Wno-unused -Wno-parentheses -Wno-switch &nbsp;-I../pd/src<br>
&gt; -I../../pd/src -I../../../pd/src -I../../../../pd/src<br>
&gt; -I../../../../../pd/src -m32 -o gpio.o -c gpio.c cc1: error:<br>
</div>&gt; unrecognized command line option ?-m32? make: *** [gpio.l_i386]<br>
<div>&gt; Error 1<br>
&gt;<br>
&gt; Do you know what this error message could mean?<br>
<br>
</div>it means that the makefile has a compiler flag "-m32" which is not<br>
known to the compiler.<br>
<div><br>
&gt; What should I expect as the output from compiling like this?<br>
<br>
</div>nothing. the build failed.<br>
<br>
you could try editing your makefile and removing the "-m32"<br>
occurences, and see what you get then.<br>
<br>
make a backup of the makefile, before you go ahead.<br>
<br>
fgamsrd<br>
<div>IOhannes<br>
-----BEGIN PGP SIGNATURE-----<br>
Version: GnuPG v1.4.12 (GNU/Linux)<br>
Comment: Using GnuPG with Icedove - <a href="http://www.enigmail.net/" target="_blank">http://www.enigmail.net/</a><br>
<br>
</div>iEYEARECAAYFAlHBlqMACgkQkX2Xpv6ydvSjtACg7y5vI4qGYDwjphUooM/Yt+RZ<br>
/KcAoKpb6waukrnp35DZQGFYmP88XAVD<br>
=0t/E<br>
<div><div>-----END PGP SIGNATURE-----<br>
<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><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>
<br></blockquote></div><br><br clear="all"><br></div></div><span class="HOEnZb"><font color="#888888">-- <br><div dir="ltr">**********************<div>Jaime E Oliver LR<br><a href="http://www.jaimeoliver.pe/" target="_blank">www.jaimeoliver.pe</a><br>
<br></div></div>
</font></span></div>
</blockquote></div><br></div>
</blockquote></div><br></body></html>