How to access to GPIO for Android VIM1_Pie_V211022

Hi, @Terry
I want to send the hight/low voltage level to GPIOH_5 (pin 37) on VIM1_Pie_V211022 image, I follow your instructions How to access GPIO on Android but it not work.

My re-produce steps:

$ adb shell
kvim:/ $ su
kvim:/ # echo 176 > /sys/class/gpio/export
1|kvim:/ # echo “out” > /sys/class/gpio/gpio176/direction
/system/bin/sh: can't create /sys/class/gpio/gpio176/direction: No such file or directory

Screenshot 2566-01-04 at 16.23.24

And I list files in /sys/class/gpio, I got

1|kvim: # ls -la /sys/class/gpio
total 0
drwxr-xr-x   2 root root    0 2023-01-04 11:12 .
drwxr-xr-x 124 root root    0 2023-01-04 11:12 ..
-rw-rw-rw-   1 root root 4096 2023-01-04 14:01 export
lrwxrwxrwx   1 root root    0 2023-01-04 12:16 gpiochip401 -> ../../devices/platform/pinctrl@4b0/gpio/gpiochip401
lrwxrwxrwx   1 root root    0 2023-01-04 12:16 gpiochip501 -> ../../devices/platform/pinctrl@14/gpio/gpiochip501
-rw-rw-rw-   1 root root 4096 2023-01-04 11:12 unexport

Please give me an advise, thank you.

Hello guys,
After take serval days, I found useful doc in access GPIO on old documentation khadas.github.io.
Screenshot 2566-01-05 at 10.58.18

@goenjoy Could you please update the documentation on docs.khadas.com? Because docs.khadas.com is lack of GPIO information and some new guys not lucky like me that found doc on https://khadas.github.io.

Thank you.

@pinij Thank you for your feedback. This is a big project. We will spend more time to improve.