Enhancement of 30pin GPIO

The ODROID-XU4 provides 30Pin GPIOs (CON 10).

You need to enter into super-user mode first to run below commands !!

 sudo su 

First, you refer to below link.
You check Export number that you want to use GPIO.
Pin description

Create a GPIO file access.
You can access GPIOs using sysfs interface.

echo 29 > /sys/class/gpio/export

Configure the pin direction (in/out)

echo in > /sys/class/gpio/gpio29/direction

Read a value (if gpio direction is input)

cat /sys/class/gpio/gpio29/value

Write a value (if gpio direction is output)

  echo 1 > /sys/class/gpio/gpio29/value : gpio high
  echo 0 > /sys/class/gpio/gpio29/value : gpio low