How would I set GPIO02?

I’d like to make GPIO02 an output and change the value. How do I do this with JetPack 6.0?

Hi @bike_works

Here is information about how to control GPIOs on JP6:

https://forums.developer.nvidia.com/t/how-to-toggle-gpio-pins-in-orin-nano-jetpack-6-0-dynamically/285247/3

Regards,

Enrique Ramirez
Embedded SW Engineer at RidgeRun
Contact us: support@ridgerun.com
Developers wiki: https://developer.ridgerun.com
Website: www.ridgerun.com

@enrique.ramirez when I do gpioset -c 1 12=1 it works but just hangs. I don’t see the mode-wait option.

maybe I should be using a python library?

Did you install the right package?

sudo apt install gpiod

Also, make sure you use double dashes -- instead of -.

I’m using scarthgap in yocto land. Wonder if I just have a different version of gpioset. I see v2.1.2