This guide covers the Linux interface for GPIO operations using bash
Available GPIO's
The following output provides a list of all GPIO's that are available to the Jetson. This includes Tegra GPIO's as well as external driven GPIO extender.
If you want to do this Linux interface on a external connected GPIO extender, requires changes to the DeviceTree. A more detailed Instruction on how to implement such a device can be found in the Linux kernel Documentation.
nvidia@nvidia-desktop:~$ echo in > /sys/class/gpio/gpio414/direction
nvidia@nvidia-desktop:~$
Configure as Output
set GPIO direction as output
nvidia@nvidia-desktop:~$ echo out > /sys/class/gpio/gpio414/direction
nvidia@nvidia-desktop:~$
Set GPIO Value
The logical GPIO level can be configure in the following ways. Keep in mind that its required to configure the GPIO as output before changing its output value.