To control on the GPIO pins:
The external GPIOs are available under the /sys/class/gpio folder in Linux.
To control on the GPIO pins you need to calculate the GPIO number XX and run the commands below:
This is an example code for accessing the GPIOs on the ClearFog Base/Pro:
#An example for gpio 22 # Export GPIO XX cd /sys/class/gpio/ echo 22 > export cd gpio22/ # Set GPIO pin Direction echo out > direction # Set the value of an output pin echo 0 > value