Welcome to Jetson AGX Orin repository
当製品の日本語版マニュアル資料は、こちらからご取得ください。
02.GPIO library installation
GPIO Library Installation
GPIO Library Installation1. Installing the Jetson.GPIO Library1.1 Automatic Installation1.2 Manual Installation2. Set User Permissions3. Customize the Rule File3.1 Copying the Rule File3.2 Reloading udev Rules4. Setting the Motherboard Model5. References
1. Installing the Jetson.GPIO Library
The system installs the Jetson.GPIO library by default; this step can be skipped.
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 result in an outdated 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 username
xxxxxxxxxxsudo groupadd -f -r gpiosudo usermod -a -G gpio jetson

3. Customize the Rule File
3.1 Copying the Rule File
xxxxxxxxxxcd ~/jetson-gpio/sudo cp lib/python/Jetson/GPIO/99-gpio.rules /etc/udev/rules.d/
3.2 Reloading udev Rules
xxxxxxxxxxsudo udevadm control --reload-rules && sudo udevadm trigger

4. Setting the Motherboard Model
Currently, Jetpack 6.1 does not pre-set the motherboard model. Before each GPIO control operation, you need to set the motherboard model in the terminal:
xxxxxxxxxxexport JETSON_MODEL_NAME=JETSON_AGX_ORIN