[PD] how to install and use GPIO external

Jaime Oliver jaime.oliver2 at gmail.com
Wed Jun 19 18:17:20 CEST 2013


you need to be root.

start pd with sudo. unless there is a more permanent solution by now?

best,

J


On Wed, Jun 19, 2013 at 6:02 PM, Josh Downing <jndowning at gmail.com> wrote:

> 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".
>
> 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.
>
> 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?
>
> Almost there! Really appreciate your guys patience with me and help on
> this!
>
> Josh
>
>
> On Wed, Jun 19, 2013 at 6:31 AM, IOhannes m zmoelnig <zmoelnig at iem.at>wrote:
>
>> -----BEGIN PGP SIGNED MESSAGE-----
>> Hash: SHA1
>>
>> On 2013-06-18 23:37, Josh Downing wrote:
>> >
>> >
>> > cc -DPD -O2 -funroll-loops -fomit-frame-pointer
>> > -fno-strict-aliasing -Wall -W -Wshadow -Wstrict-prototypes
>> > -Wno-unused -Wno-parentheses -Wno-switch  -I../pd/src
>> > -I../../pd/src -I../../../pd/src -I../../../../pd/src
>> > -I../../../../../pd/src -m32 -o gpio.o -c gpio.c cc1: error:
>> > unrecognized command line option ?-m32? make: *** [gpio.l_i386]
>> > Error 1
>> >
>> > Do you know what this error message could mean?
>>
>> it means that the makefile has a compiler flag "-m32" which is not
>> known to the compiler.
>>
>> > What should I expect as the output from compiling like this?
>>
>> nothing. the build failed.
>>
>> you could try editing your makefile and removing the "-m32"
>> occurences, and see what you get then.
>>
>> make a backup of the makefile, before you go ahead.
>>
>> fgamsrd
>> IOhannes
>> -----BEGIN PGP SIGNATURE-----
>> Version: GnuPG v1.4.12 (GNU/Linux)
>> Comment: Using GnuPG with Icedove - http://www.enigmail.net/
>>
>> iEYEARECAAYFAlHBlqMACgkQkX2Xpv6ydvSjtACg7y5vI4qGYDwjphUooM/Yt+RZ
>> /KcAoKpb6waukrnp35DZQGFYmP88XAVD
>> =0t/E
>> -----END PGP SIGNATURE-----
>>
>> _______________________________________________
>> Pd-list at iem.at mailing list
>> UNSUBSCRIBE and account-management ->
>> http://lists.puredata.info/listinfo/pd-list
>>
>
>
> _______________________________________________
> Pd-list at iem.at mailing list
> UNSUBSCRIBE and account-management ->
> http://lists.puredata.info/listinfo/pd-list
>
>


-- 
**********************
Jaime E Oliver LR
www.jaimeoliver.pe
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20130619/5791e69c/attachment-0001.htm>


More information about the Pd-list mailing list