-
Notifications
You must be signed in to change notification settings - Fork 1
Using GPIO Pins
Isaac Vandor edited this page Feb 2, 2017
·
1 revision
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
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+.