JNX30-LC TECHNICAL REFERENCE MANUAL
VERSION: 1.2
Page 21 of 28
DEC 2021
SECTION 10
Appendix B [GPIO]
10.1
Calculate GPIO pins
This will be added in a future version
10.2
GPIO control
This example shows how to set and readout GPIO 414.
For different GPIO numbers replace 414 accordingly.
10.2.1
Export GPIO
echo 414 > /sys/class/gpio/export
10.2.2
Change direction to in
echo in > /sys/class/gpio/gpio414/direction
10.2.3
Change direction to out
echo out > /sys/class/gpio/gpio414/direction
10.2.4
Set GPIO low
echo 0 > /sys/class/gpio/gpio414/value