Cannot control multiple GPIO pins on Orin Nano

I have JP 5.1.3[L4T 35.5.0], I am trying to control multiple GPIO pins using this code

import Jetson.GPIO as GPIO
import time

GPIO.setmode(GPIO.BOARD)
channels = [29,7]

GPIO.setup(channels, GPIO.OUT)

while True:
GPIO.output(channels, [GPIO.HIGH, GPIO,LOW])
time.sleep(1)
GPIO.output(channels, [GPIO.LOW, GPIO,HIGH])
time.sleep(1)

GPIO.cleanup()

Hi wamanserutvij25,

Are you using the devkit or custom board for Orin Nano?

Which PIN would you like to control?

Have you also tried with the following example?
jetson-gpio/samples/simple_out.py at master · NVIDIA/jetson-gpio · GitHub

Hey,
I am using the dev kit,
I wanted to control the GPIO Pins 9 and 12.
Yes I tried that example and it worked

It seems you can control the GPIO with that example script.
You can also customize it for your use case.
And let us know if you have further issue.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.