Jetson.GPIO - Linux for Tegra
The Jetson Orin NX, Jetson Orin Nano, and Jetson Nano development boards contain a 40-pin GPIO header similar to the 40-pin header in the Raspberry Pi. The digital inputs and outputs of these GPIOs can be controlled using the Python library provided in the Jetson GPIO Library package. This library has the same API as the Raspberry Pi's RPi.GPIO library in order to provide an easy way to move applications running on the Raspberry Pi to the Jetson board.
In addition to this document, the Jetson GPIO Library package also contains the following:
This document will describe what is included in the Jetson GPIO library package, how to configure your system, and run the provided sample applications and library API. Here we briefly introduce how to use this library about Jetson.GPIO, here are detailed instructions: https://pypi.org/project/Jetson.GPIO/ or https://github.com/NVIDIA/jetson-gpio
GPIO and BCM comparison table
Environment configuration
Then put the downloaded file in the opt/nvidia/ directory. Because the author puts the folder in the path ~/ and is currently in opt/nvidia/, you can execute the following command to move the folder
sudo mv ~/jetson-gpio ./
sudo cp /opt/nvidia/jetson-gpio/lib/python/Jetson/GPIO/99-gpio.rules /etc/udev/rules.d/ In order for the new rules to take effect, you need to reboot or reload the udev rules by running the following command sudo udevadm control --reload-rules && sudo udevadm trigger Note: user_name is your username, for example jetson