Follow Pd_wiringpi_gpio
Other Useful Business Software
$300 in Free Credit Towards Top Cloud Services
Start your project in minutes. After credits run out, 20+ products include free monthly usage. Only pay when you're ready to scale.
Rate This Project
Login To Rate This Project
User Reviews
-
I am finding this a very useful way to control gpio on the RPi. I had previously experimented with some simple gpio bash scripts to flash LEDs and Gordon Henderson's 'Tux Crossing' script to emulate a pedestrian crossing light sequence. The relevant wiringpi code needs to be in place before using this pd extension. I must admit that my first attempts to use this extension were not successful and resulted in pd crashing, despite using 'sudo pd'. However, analysis helped identify a solution in my instance. 1) in wiringPi_gpio\wiringPi_gpio.c Move the code line - If (WiringPiSetup () == -1) exit (1) ; from function *wiringPi_gpio_new to the end of function wiringPi_gpio_setup 2) Recompile gcc -c wiringPi_gpio.c -o wiringPi_gpio.o ld -E -shared -o wiringPi_gpio.l_arm wiringPi_gpio.o -lc -lm -lwiringPi -lpthread 3) copy to /usr/lib/pd/extra or relevant path My configuration: Rasbian Jessie on Model B revision 2 000f. Pd version 0.46.2 I haven't explored the MCP3008 code yet.