docs: 添加 Milk-V Duo (256M) LED Blink 插件使用案例#141
Open
3077126169lin-rgb wants to merge 1 commit into
Open
Conversation
Contributor
Reviewer's GuideAdds a new VSCode plugin usage case document (case3) describing how to use the RuyiSDK Examples feature with a Milk-V Duo (256M) board to build and run an LED blink demo end-to-end, including toolchain setup, virtual environment, source extraction, build, deployment, and cleanup. Flow diagram for Milk-V Duo LED Blink development using RuyiSDK Examplesflowchart TD
Dev[Developer] --> VSCode[VSCode RuyiSDK_Extension]
VSCode --> Home[Open Ruyi Home and RuyiSDK Examples]
Home --> SelectBoard[Select MilkV_Duo_256M Blink example]
VSCode --> Packages[Install gnu_plct toolchain]
VSCode --> Venv[Create milkv_duo virtual_environment]
VSCode --> Extract[Extract RuyiSDK_Package milkv_duo_examples]
Extract --> Source[Local blink source directory]
Source --> Build[Build blink with riscv64_plct_linux_gnu_gcc]
Build --> Binary[Blink binary]
Binary --> SCP[scp to board 192_168_42_1]
SCP --> Board[MilkV_Duo_256M board]
Board --> DisableSysBlink[Disable system blink_sh and reboot]
DisableSysBlink --> RunBlink[Run ./blink and observe LED]
RunBlink --> RestoreSysBlink[Restore blink_sh and reboot]
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
Contributor
There was a problem hiding this comment.
Hey - I've found 1 issue
Prompt for AI Agents
Please address the comments from this code review:
## Individual Comments
### Comment 1
<location path="VSCode-Plugins/cases/case3.md" line_range="11" />
<code_context>
+
+## 前置条件
+
+- 已安装 RuyiSDK VSCode 扩展(如未安装,可在 VSCode 扩展市场搜索 RuyiSDK 安装)
+- 已连接互联网(RuyiSDK 示例功能需要网络)
+- 已准备 Milk-V Duo (256M) 开发板,并已完成系统启动(参考 [Milk-V Duo 官方文档](https://milkv.io/zh/docs/duo/getting-started/boot))
</code_context>
<issue_to_address>
**nitpick (typo):** 可以考虑将“VSCode”统一改为官方写法“VS Code”以保持专有名词拼写规范。
文中多处出现“VSCode”(包括本行和“在 VSCode 中打开”按钮)。建议统一改为“VS Code”以与微软官方写法保持一致,是否采纳可按团队约定决定。
Suggested implementation:
```
- 已安装 RuyiSDK VS Code 扩展(如未安装,可在 VS Code 扩展市场搜索 RuyiSDK 安装)
```
文档中其它位置若存在“VSCode”(例如按钮文案“在 VSCode 中打开”等),也应统一替换为“VS Code”,包括:
1. 普通文本中出现的“VSCode”。
2. UI 按钮、菜单项等出现的“VSCode”。
请在整个文档和相关翻译/配置文件中搜索“VSCode”并统一替换为“VS Code”,以保持专有名词拼写一致。
</issue_to_address>Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
|
|
||
| ## 前置条件 | ||
|
|
||
| - 已安装 RuyiSDK VSCode 扩展(如未安装,可在 VSCode 扩展市场搜索 RuyiSDK 安装) |
Contributor
There was a problem hiding this comment.
nitpick (typo): 可以考虑将“VSCode”统一改为官方写法“VS Code”以保持专有名词拼写规范。
文中多处出现“VSCode”(包括本行和“在 VSCode 中打开”按钮)。建议统一改为“VS Code”以与微软官方写法保持一致,是否采纳可按团队约定决定。
Suggested implementation:
- 已安装 RuyiSDK VS Code 扩展(如未安装,可在 VS Code 扩展市场搜索 RuyiSDK 安装)
文档中其它位置若存在“VSCode”(例如按钮文案“在 VSCode 中打开”等),也应统一替换为“VS Code”,包括:
- 普通文本中出现的“VSCode”。
- UI 按钮、菜单项等出现的“VSCode”。
请在整个文档和相关翻译/配置文件中搜索“VSCode”并统一替换为“VS Code”,以保持专有名词拼写一致。
3077126169lin-rgb
force-pushed
the
add-case3-milkv-duo-256m-blink
branch
9 times, most recently
from
June 15, 2026 08:26
eeb900e to
1b8017e
Compare
3077126169lin-rgb
force-pushed
the
add-case3-milkv-duo-256m-blink
branch
from
June 15, 2026 08:29
1b8017e to
9e9fb4d
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
概述
本 PR 在「插件使用案例」分类下新增了 case3:Milk-V Duo (256M) LED Blink:使用 RuyiSDK 示例完成外设开发。
内容说明
本案例演示了如何利用插件中的 RuyiSDK 示例 功能,找到 Milk-V Duo (256M) 开发板的 LED Blink 示例,并通过插件的包管理、虚拟环境和源码解包能力,完成从查找示例到板载 LED 闪烁的完整开发流程。
主要步骤包括:
uyi.board-docs\)查找 LED Blink 示例
与现有案例的区别
本案例的特色:
参考来源
Summary by Sourcery
Documentation: