/sys/class/gpio/PC24/value
root@rugged-board-a5d2x-sd1:~# echo 84 /sys/class/gpio/PC24/value
84 /sys/class/gpio/PC24/value
root@rugged-board-a5d2x-sd1:~# echo 84 > /sys/class/gpio/export
-sh: echo: write error: Resource busy
root@rugged-board-a5d2x-sd1:~# echo 88 > /sys/class/gpio/export
-sh: echo: write error: Invalid argument
root@rugged-board-a5d2x-sd1:~# echo 79 > /sys/class/gpio/export
-sh: echo: write error: Invalid argument
root@rugged-board-a5d2x-sd1:~# echo 86 > /sys/class/gpio/export
-sh: echo: write error: Invalid argument
root@rugged-board-a5d2x-sd1:~# echo 84 > /sys/class/gpio/export
-sh: echo: write error: Resource busy
root@rugged-board-a5d2x-sd1:~# echo 84 > /sys/class/gpio/export
-sh: echo: write error: Resource busy
root@rugged-board-a5d2x-sd1:~# echo 84 > /sys/class/gpio/export
-sh: echo: write error: Resource busy
root@rugged-board-a5d2x-sd1:~
i have connected -ve to pin1 and 24 v dc to pin 5 of digital input port p5
but i'm getting above error please resolve it.
Dear Abhinet pandey,
Please Boot the board from NOR/MMC
And connect the First pin of the P5 connector to the input voltage and Fifth pin of the P5 connector to the Ground and follow the below commands.
$ echo 84 > /sys/class/gpio/export
$ echo in > /sys/class/gpio/PC20/direction
$ cat /sys/class/gpio/PC20/value
Remove the patch card and give the below command
$ cat /sys/class/gpio/PC20/value
The value of digital pin is changed one to zero.