Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add tip for gpioset #590

Merged
merged 1 commit into from
Dec 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions docs/common/dev/_gpio.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,8 @@ GPIO 简介
radxa@#model#:~$ sudo gpioset -m signal $(sudo gpiofind PIN_#gpio_pin#)=1 # 输出高电平, Led 亮
`}
</PreView>

:::tip
同一个 GPIO 不允许被两个进程同时使用,否则会提示资源占用。
因此,需要手动按下 'Ctrl + C' 终止后,才可以执行第二个命令。
:::
Original file line number Diff line number Diff line change
Expand Up @@ -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
`}
</PreView>

:::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.
:::
Loading