diff --git a/docs/hardware/en/lichee/th1520/lpi4a/3_images.md b/docs/hardware/en/lichee/th1520/lpi4a/3_images.md index 4fadd4caf5..9fc7e0c07b 100644 --- a/docs/hardware/en/lichee/th1520/lpi4a/3_images.md +++ b/docs/hardware/en/lichee/th1520/lpi4a/3_images.md @@ -143,6 +143,7 @@ ISCAS mirror(including test mirror, ordinary users please use the mirror in the - Fixed MIPI screen brightness not being adjustable - Fixed Bluetooth not working with new WIFI/BT module - Usage Instructions: + - The image occupies a large amount of space, and the internal testing version cannot use this image due to the eMMC capacity being only 8GB. Therefore, internal testing users should use the BASIC version image; - Auto login enabled, default login user is sipeed - Sudo without password enabled - NPU drivers loaded automatically, no manual initialization needed diff --git a/docs/hardware/en/longan/h618/lpi3h/6_peripheral.md b/docs/hardware/en/longan/h618/lpi3h/6_peripheral.md index e8636fec4c..49e1d818f9 100644 --- a/docs/hardware/en/longan/h618/lpi3h/6_peripheral.md +++ b/docs/hardware/en/longan/h618/lpi3h/6_peripheral.md @@ -28,6 +28,21 @@ TODO ![io_map](./../../../../zh/longan/h618/lpi3h/assets/peripheral/io_map.jpeg) +![pin_num](./../../../../zh/longan/h618/lpi3h/assets/peripheral/pin_num.png) + +Referring to the two tables above, you can find the position and number of the GPIO to be used. Taking the example of lighting up the two LEDs on the board, you can use the following command to manipulate the corresponding GPIO in the user space: + +```shell +num=194 +echo ${num} > /sys/class/gpio/export +echo out > /sys/class/gpio/gpio${num}/direction +echo 0 > /sys/class/gpio/gpio${num}/value +num=196 +echo ${num} > /sys/class/gpio/export +echo out > /sys/class/gpio/gpio${num}/direction +echo 0 > /sys/class/gpio/gpio${num}/value +``` + ## UART ### System serial port diff --git a/docs/hardware/zh/lichee/th1520/lpi4a/3_images.md b/docs/hardware/zh/lichee/th1520/lpi4a/3_images.md index 7b9ba9d8e9..7f1f083e7c 100644 --- a/docs/hardware/zh/lichee/th1520/lpi4a/3_images.md +++ b/docs/hardware/zh/lichee/th1520/lpi4a/3_images.md @@ -138,6 +138,7 @@ ISCAS 镜像站(内含测试镜像,普通用户请使用前面网盘中的 - 修复MIPI屏幕亮度无法调节的问题 - 修复新 WIFI/BT 模块的蓝牙无法使用的问题 - 使用说明: + - 该镜像占用空间较大,内测版由于 EMMC 容量只有 8G,故无法使用本镜像,内测版用户请使用 BASIC 版本镜像; - 该镜像开启了自动登陆,默认登陆用户为 sipeed; - 该镜像开启了免密码 sudo 功能; - 该镜像会自动加载 NPU 相关的驱动,无需手动初始化; diff --git a/docs/hardware/zh/longan/h618/lpi3h/6_peripheral.md b/docs/hardware/zh/longan/h618/lpi3h/6_peripheral.md index fcf0c04d0e..3b43fa5014 100644 --- a/docs/hardware/zh/longan/h618/lpi3h/6_peripheral.md +++ b/docs/hardware/zh/longan/h618/lpi3h/6_peripheral.md @@ -28,6 +28,21 @@ TODO ![io_map](./assets/peripheral/io_map.jpeg) +![pin_num](./assets/peripheral/pin_num.png) + +参考上面的两个表格,可以找到要使用的 GPIO 对应的位置和序号,以点亮底板上的两个 LED 灯为例,可以使用命令在用户空间操作对应的 GPIO : + +```shell +num=194 +echo ${num} > /sys/class/gpio/export +echo out > /sys/class/gpio/gpio${num}/direction +echo 0 > /sys/class/gpio/gpio${num}/value +num=196 +echo ${num} > /sys/class/gpio/export +echo out > /sys/class/gpio/gpio${num}/direction +echo 0 > /sys/class/gpio/gpio${num}/value +``` + ## UART ### 系统串口 diff --git a/docs/hardware/zh/longan/h618/lpi3h/assets/peripheral/pin_num.png b/docs/hardware/zh/longan/h618/lpi3h/assets/peripheral/pin_num.png new file mode 100644 index 0000000000..4d5bd5cbb6 Binary files /dev/null and b/docs/hardware/zh/longan/h618/lpi3h/assets/peripheral/pin_num.png differ