How to use GPIO in QT?

Development board environment:Jetson Linux35.3.1
core board:orin Nano4GB
board:Jetson Orin Nano Developer Kit

I’m new to this。
I need to make an application using QT, how should I operate the GPIO high and low. I also need to use the GPIO interrupt signal for the interrupt task. I used to configure the device tree for other ARM development platforms, and then write the driver by myself, and then call the application layer. How does it work on orin nano?

Hi 56101855,

Is QT an application developed from you?

Please configure the pinmux before using GPIO.
You can refer to NVIDIA/jetson-gpio: A Python library that enables the use of Jetson’s GPIOs to control GPIO.

你好!我是使用QT编译应用。我需要在QT中对GPIO进行操作。

你好,感谢你的帮助,但是我始终没有明白,如果我在虚拟机上去编译QT应用,我需要如何将这个GPIO库加进去?

Hello! I am using QT to build the application. I need to do something with GPIO in QT.

Sorry that we don’t have too much experience on using QT for Jetson device.
Maybe you can refer to Powering the Future Together: Qt and NVIDIA Jetson for details.

You can either use our official Jetson.GPIO for python code or 3rd-patry pjueon/JetsonGPIO: A C++ library that enables the use of Jetson’s GPIOs for C++ code in QT environment.

Thanks for the technical support!

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