1

User Image GPIO June 16, 2016, 4:37 p.m.

echo 169 > /sys/class/gpio/export
# echo "in" > /sys/class/gpio/gpio169/direction
echo "out" > /sys/class/gpio/gpio169/direction
echo 0 > /sys/class/gpio/gpio169/value
echo 1 > /sys/class/gpio/gpio169/value
echo 169 > /sys/class/gpio/unexport

# if Kernel configuration ---> Kernel hacking ---> Debug FS enabled
# You can check who uses which gpio

mount -t debugfs none /sys/kernel/debug
cat /sys/kernel/debug/gpio

# pincontrol
# /sys/kernel/debug/pinctrl/

 


1