by Taehee Jeong

The first objective of this project is to develop GPIO API.

From the ARTIK Documentation, sysfs seems a good point to start.

After brief search on the internet, all the GPIO pins in linux environment seem to be stored on /sys/class/gpio. Basic example for opening and reading/writing GPIO is as followed:

echo 22 > /sys/class/gpio/export
#/sys/class/gpio/gpio22 has been created
echo out > /sys/class/gpio/direction

echo 1 > /sys/class/gpio/direction
echo 0 > /sys/class/gpio/direction

I succesfully turned LED on and off

TL;DR

Exploring ARTIK GPIO from ARTIK Documentation Pin Programming from ARTIK Documentation