[PD] gpio on the raspberry pi from within pd ?

J Oliver jaime.oliver2 at gmail.com
Fri Apr 12 07:21:35 CEST 2013


Hi Julian, All,

I think I've figured out the [gpio] external. It works fine, but there there is no documentation, however, the .c file is not very complicated.

The test-gpio.pd file is not very good as documentation, so I am attaching a draft help file. 

The argument of [gpio] is the pin number. The first thing to do is [enable 1( and not [open 1(, which is equivalent to the:
sudo echo "17" > /sys/class/gpio/export
command.

Then [open 1(, then [output 1/0( to choose direction and then write (float) to or read (bang) from the pin...

There are still a few more things I need to discover, but more tomorrow when I have some jumper cables and feel more awake.

best,

J

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20130412/ce6d0a17/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gpio-help.pd
Type: application/octet-stream
Size: 1127 bytes
Desc: not available
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20130412/ce6d0a17/attachment.obj>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20130412/ce6d0a17/attachment-0001.htm>


More information about the Pd-list mailing list