Hi,
I dig into this link and did what it says but no success to configure the pins as I wanted.
1) I export the pin
echo 40 > /sys/class/gpio/export (Succeed)
2) Then I try to change the value
echo high > /sys/class/gpio/gpio40/direction (Failed)
or
echo 1 > /sys/class/gpio/gpio40/value (Failed)
3 ) Then I looked at the result
cat /sys/kernel/debug/gpio
gpio-40 (sysfs ) out lo
4 ) Then I try to change the direction
echo in > /sys/class/gpio/gpio40/direction (Succeed)
The result is
gpio-40 (sysfs ) in hi
5 ) Then try to change the direction out high, it just change the direction not the value
echo high > /sys/class/gpio/gpio40/direction
gpio-40 (sysfs ) out lo
Other pins are also behave same. Whats the problem ?