Pure Data Wiring Pi GPIO
This example uses the MCP3008 ADC chip.
Install WiringPi on the Pi.
Then download PdWringPi GPIO patch.
The Pd patch tells you to run: “sudo gpio load spi” to enable SPI, but you can do that in raspi-config:
$ sudo raspi-config
Advanced -> SPI -> enable
Run Pd as root to access the GPIO, if not Pd will crash when you press “setup_wiringPi”:
$ sudo pd