Asus AAEON BOXER-8652AI User Manual page 36

Ai@edge compact fanless embedded ai system with nvidia jetson orin nx
Table of Contents

Advertisement

Export GPIO then you can use control GPIO from user space through sysfs.
Demonstration:
Take "GPIO ID:PY.02" as an example
Export PY.02
# echo PY.02 > /sys/class/gpio/export
1. Set GPIO direction to output mode
# echo "out" > /sys/class/gpio/PY.02/direction
# echo 1 > /sys/class/gpio/PY.02/value
#Set the output value is 1
# echo 0 > /sys/class/gpio/PY.02/value
#Set the output value is 0
2. Set GPIO direction to input mode
# echo "in" > /sys/class/gpio/PY.02/direction
# cat /sys/class/gpio/PY.02/value
#Read the input value of GPIO
Unexport PY.02
# echo PY.02 > /sys/class/gpio/unexport
Chapter 2 – Hardware Information
24

Advertisement

Table of Contents
loading

Table of Contents