Skip to content

Using GPIO Pins

Isaac Vandor edited this page Feb 2, 2017 · 3 revisions

Using GPIO Pins on the ODROID

pinout

CLI

echo ${PIN} > /sys/class/gpio/export # PIN = whichever GPIO pin you decided to use
echo ${MODE} > /sys/class/gpio/gpio${PIN}/direction # MODE = 'in' or 'out'  
echo ${VALUE} > /sys/class/gpio/gpio${PIN}/value # VALUE = 1 for HIGH and 0 for LOW
echo ${PIN} > /sys/class/gpio/unexport # Done with using PIN

C/C++

See This Github Repo for Basic C++ interface with GPIO.

For more sophisticated applications, see This Github Repo.

Currently, software PWM on wiringPi doesn't work on the ODROID C1/C1+.

Clone this wiki locally