Welcome to Jetson Orin NX SUPER repository
当製品の日本語版マニュアル資料は、こちらからご取得ください。
02.GPIO library installation
GPIO library installation
GPIO library installation1. Install Jetson.GPIO library1.1. Automatic installation1.2. Manual installation2. Set user permissions3. Custom rule file3.1. Copy rule file3.2, Reload udev rules4, Set the motherboard model5, References
1. Install Jetson.GPIO library
The system installs Jetson.GPIO library by default, so you can skip this step.
1.1. Automatic installation
sudo pip3 install Jetson.GPIO

1.2. Manual installation
It is recommended to use the automatic installation method. Manual installation may not be the latest version.
xxxxxxxxxxgit clone https://github.com/NVIDIA/jetson-gpio
xxxxxxxxxxcd ~/jetson-gpio/
xxxxxxxxxxsudo python3 setup.py install

2. Set user permissions
Allow the current system user to access and use the Jetson.GPIO library: where jetson is the system user name
xxxxxxxxxxsudo groupadd -f -r gpiosudo usermod -a -G gpio jetson

3. Custom rule file
3.1. Copy rule file
xxxxxxxxxxcd ~/jetson-gpio/sudo cp lib/python/Jetson/GPIO/99-gpio.rules /etc/udev/rules.d/
3.2, Reload udev rules
xxxxxxxxxxsudo udevadm control --reload-rules && sudo udevadm trigger

4, Set the motherboard model
Currently Jetpack6.2 does not set the motherboard model in advance. You need to set the motherboard model in the terminal before controlling GPIO each time:
xxxxxxxxxxexport JETSON_MODEL_NAME=JETSON_ORIN_NX