diff --git a/docs/common/dev/_gpio.mdx b/docs/common/dev/_gpio.mdx index 3b1399814..6fa7d6756 100644 --- a/docs/common/dev/_gpio.mdx +++ b/docs/common/dev/_gpio.mdx @@ -45,3 +45,8 @@ GPIO 简介 radxa@#model#:~$ sudo gpioset -m signal $(sudo gpiofind PIN_#gpio_pin#)=1 # 输出高电平, Led 亮 `} + +:::tip +同一个 GPIO 不允许被两个进程同时使用,否则会提示资源占用。 +因此,需要手动按下 'Ctrl + C' 终止后,才可以执行第二个命令。 +::: diff --git a/i18n/en/docusaurus-plugin-content-docs/current/common/dev/_gpio.mdx b/i18n/en/docusaurus-plugin-content-docs/current/common/dev/_gpio.mdx index 00c862389..47820ea1e 100644 --- a/i18n/en/docusaurus-plugin-content-docs/current/common/dev/_gpio.mdx +++ b/i18n/en/docusaurus-plugin-content-docs/current/common/dev/_gpio.mdx @@ -45,3 +45,8 @@ This command outputs 0 if ground is connected and 1 if 3.3V is connected. radxa@#model#:~$ sudo gpioset -m signal $(sudo gpiofind PIN_#gpio_pin#)=1 # Output high, Led on `} + +:::tip +The same GPIO cannot be used by two processes at the same time, otherwise it will indicate resource usage. +Therefore, you need to wait for the first command to finish executing before you can execute the second command. +:::