GPIO using `gpioctl` on OpenWrt 22.03
-
I installed
gpioctl-sysfs
but it did not work.root@OpenWrt:~# gpioctl dirin 11 Using gpio pin 11. gpio_request: Invalid argument root@OpenWrt:~#
How can I make
gpioctl
working properly?
And is there a way to useomega2-ctrl
command on OpenWrt 22.03?
-
@DumTux Can you execute the command:
echo 11 >/sys/class/gpio/export
Then check /sys/class/gpio/export/gpio11 is created
If it is then you can set to input mode using the command:
echo in >/sys/class/gpio/gpio11/direction
-
Yes, it worked. Thank you.
I had to use different pin numbering as @luz explained in this answer for my CAN bus question.