4-2 GPIO Input Control

1. Confirm GPIO Number: 

gpiofind PQ.05

2. Output message:

gpiochip0 105

3. Read Button Status:

gpioget `gpiofind "PQ.05"`


Summary

Using libgpiod tools, the GPIO number can be checked using the gpiofind command, and the GPIO status can be obtained using gpioget.

 

Copyright © 2026 YUAN High-Tech Development Co., Ltd.
All rights reserved.