Documentation/Allspark2-Orin NX WikiEnglish · NX
Browse documentation
10 Interface Function Test Demos

10.11 Button Test

Power adapter and Allspark Orin NX main unit.

1 min read · English documentation

Button Test

Test Equipment

Power adapter and Allspark-Orin NX main unit.

Test Objective

Test the functionality of the button-related circuitry.

Test Procedure

Test the USER Button First
Hardware Pin Name Internal Software Name Internal Software Number
gpio08 PQ.02 450
  1. Enter the password to become the superuser.
sudo su
  1. Export GPIO 450 as follows.
echo 450 > /sys/class/gpio/export
  1. Set the GPIO as an input.
echo in > /sys/class/gpio/PQ.02/direction
  1. Hold down the USER button and enter the command to verify that the level is low. Release the USER button and enter the command to verify that the level is high.
cat /sys/class/gpio/PQ.02/value 

图片.png

RST Button Test

Press and hold RST for one second, and then release it. The onboard computer restarts.

REC Button Test

Refer to the OTG test procedure in Section 3.4.1.