Folks, i am really confused. Have you guys ever had issues when writing to the GPIO? For example i am trying to turn on an LED that is connected to each GPIO. Some GPIOs work as expected, while others simple refuse to acknowledge my commands.
In particular am trying to turn on an LED at GPIO1_6, since this is on bank #1 and pin #6, the GPIO number is 1*32+6 = 38. In the command line I insert the following sequence of commands and it works as expected.
NUMBER=38
echo ${NUMBER} > /sys/class/gpio/export
ls /sys/class/gpio/
ls /sys/class/gpio/gpio${NUMBER}
echo “high” > /sys/class/gpio/gpio${NUMBER}/direction
delay 1
echo “low” > /sys/class/gpio/gpio${NUMBER}/direction
delay 1
echo ${NUMBER} > /sys/class/gpio/unexport
I can change the number to 45 which will blink GPIO1_13, 47 will blink GPIO1_15, 62 will blink GPIO1_30. However, the system does not respond when I attempt to blink GPIO1_2 (NUMBER=34) and a bunch of other GPIOS such as GPIO1_4, GPIO1_0.
Do you guys have any ideas or suggestions?