Hi Ingirafn, This is the one that Jaime put together.
Best of luck with it all, Julian On 12 November 2013 11:20, Ingirafn Steinarsson <[email protected]> wrote: > Hello. I found this thread and I am trying to compile the on the raspberry > pi. I think I managed to but I was wondering where the gpio-help.pd files > mentioned exist . > > Best > > Ingirafn > > > _______________________________________________ > [email protected] mailing list > UNSUBSCRIBE and account-management -> http://lists.puredata.info/ > listinfo/pd-list >
#N canvas 50 28 530 426 10; #X obj 57 197 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0 1; #X obj 83 300 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144 -1 -1; #X obj 71 259 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0 1; #X obj 71 279 metro 1; #X msg 18 12 enable 1; #X msg 28 39 open 1; #X obj 8 371 gpio 17; #X text 84 13 equivalent to: echo "17" > /sys/class/gpio/export; #X msg 39 133 output 1; #X text 99 75 calls function open(buf \, 0_RDWR); #X text 108 134 equivalent to: echo out > /sys/class/gpio/direction ; #X text 115 150 args: 1 for out \, and 0 for in; #X floatatom 65 218 5 0 0 0 - - -; #X text 134 270 poll input; #X text 77 199 write output; #X text 90 58 sprintf(buf \, "/sys/class/gpio/gpio%d/value" \, x->x_pin) \;; #X text 82 39 not sure what this does \, but seems to set initial value? ; #X text 73 372 argument is pin number (pin0) see:; #X text 82 388 http://elinux.org/RPi_Low-level_peripherals#GPIO_hardware_hacking ; #X connect 0 0 6 0; #X connect 1 0 6 0; #X connect 2 0 3 0; #X connect 3 0 6 0; #X connect 4 0 6 0; #X connect 5 0 6 0; #X connect 8 0 6 0; #X connect 12 0 6 0;
_______________________________________________ [email protected] mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
