I am using raspberry pi with Debian Wheezy 18-09-2012 image. I can access gpio pins with Wiring pi tool. But I would like to know is any other method that we can access gpio pins directly without wiring pi?
When I run the following command on terminal
echo 0 >/sys/class/gpio/export
-bash: /sys/class/gpio/export: Permission denied
Is there any solution for this?
I also tried the following script
#!/bin/sh echo "4" > /sys/class/gpio/export echo "out" > /sys/class/gpio/gpio4/direction while true do echo 1 > /sys/class/gpio/gpio4/value echo 0 > /sys/class/gpio/gpio4/value done
from here and i get the same error.
I would like to run the code on C because right now I am not familiar with both Java and Python.