<div dir="ltr">Awesome! I got it working! Thanks for all the help!<div><br></div><div style>One more question, does anyone know if you can set the internal pullup/pulldown for the GPIO pins from within PD and if so how you can set this?</div>
<div style><br></div><div style>Thanks,<br>Josh</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Jun 19, 2013 at 5:52 PM, J 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 style="word-wrap:break-word"><div class="im"><div><span style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:-webkit-auto;font-style:normal;font-weight:normal;line-height:normal;border-collapse:separate;text-transform:none;font-size:medium;white-space:normal;font-family:Helvetica;word-spacing:0px"><span style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:-webkit-auto;font-style:normal;font-weight:normal;line-height:normal;border-collapse:separate;text-transform:none;font-size:medium;white-space:normal;font-family:Helvetica;word-spacing:0px"><div style="word-wrap:break-word">
On Jun 19, 2013, at 7:07 PM, Josh Downing wrote:</div></span></span></div></div><div><div class="im"><blockquote type="cite"><div dir="ltr">click &quot;enable 1&quot;, &quot;open 1&quot;, and then &quot;output 0&quot;. </div>
</blockquote></div>ok.</div><div><div class="im"><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><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><span class="HOEnZb"><font color="#888888"><div><br></div><div>J</div></font></span><div><div class="h5"><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"> I have the poll input check box checked. 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 &quot;readall&quot; command from LXTerminal so I know that I&#39;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>Sorry I have very little experience with pure data and am just learning.</div><div><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><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 &quot;-m32&quot; 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 &quot;gpio-help.pd&quot; patch without getting an error message. In the gpio-help.pd patch I would click &quot;enable 1&quot; and then click &quot;open 1&quot; and after clicking &quot;open 1&quot; I would get an error message: &quot;/sys/class/gpio/gpio17/value: No such file or directory&quot;.<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, &quot;echo &quot;17&quot; |sudo tee /sys/class/gpio/export&quot;. 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 &quot;gpio readall&quot; command from LXTerminal.</div>



<div><br></div><div>I then loaded the &quot;gpio-help.pd&quot; file again in PD. Now once I click &quot;open 1&quot; instead of the no such file or directory error I get &quot;/sys/class/gpio/gpio17/value: Permision denied&quot; error. Is there someway I can use this GPIO library within the PD visual interface without getting permission denied errors? Also, shouldn&#39;t clicking &quot;enable 1&quot; within the gpio-help.pd patch create the &quot;/sys/class/gpio/gpio17&quot; 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  -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 &quot;-m32&quot; 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 &quot;-m32&quot;<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><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></div></div><br></div></blockquote></div><br></div>