From cf1703ab36a5e1db838d7faf74d2df5b92eb1e96 Mon Sep 17 00:00:00 2001 From: nascs Date: Tue, 3 Dec 2024 18:40:09 +0800 Subject: [PATCH] fix: fix the description Signed-off-by: Nascs Fang --- docs/common/dev/_pico-sdk-windows.mdx | 6 ++-- .../x2l/software-development/c-sdk-windows.md | 16 ++++++++++- .../software-development/c_sdk_examples.md | 2 +- docs/x/x4/software/c-sdk-windows.md | 28 ++++++++++++++++++- docs/x/x4/software/c_sdk_examples.md | 2 +- .../current/common/dev/_pico-sdk-windows.mdx | 6 ++-- .../x2l/software-development/c-sdk-windows.md | 16 ++++++++++- .../software-development/c_sdk_examples.md | 4 +-- .../current/x/x4/software/c-sdk-windows.md | 28 ++++++++++++++++++- .../current/x/x4/software/c_sdk_examples.md | 2 +- 10 files changed, 95 insertions(+), 15 deletions(-) diff --git a/docs/common/dev/_pico-sdk-windows.mdx b/docs/common/dev/_pico-sdk-windows.mdx index e68b5c4fd..682c89429 100644 --- a/docs/common/dev/_pico-sdk-windows.mdx +++ b/docs/common/dev/_pico-sdk-windows.mdx @@ -1,4 +1,4 @@ -### 安装必要工具 +## 安装必要工具 - [Git for Windows](https://github.com/git-for-windows/git/releases/download/v2.47.1.windows.1/Git-2.47.1-64-bit.exe) @@ -48,7 +48,7 @@ - [Python3 for Windows](https://www.python.org/downloads/windows/) -### 设置环境变量 +## 设置环境变量 - 在搜索栏搜索 "编辑系统环境" @@ -84,7 +84,7 @@ alt="pico path env" /> -### 构建编译 +## 构建编译 打开 git bash, 进入到 pico-examples/build 目录下,执行以下命令进行构建编译 diff --git a/docs/x/x2l/software-development/c-sdk-windows.md b/docs/x/x2l/software-development/c-sdk-windows.md index 39054339a..c9eaa8085 100644 --- a/docs/x/x2l/software-development/c-sdk-windows.md +++ b/docs/x/x2l/software-development/c-sdk-windows.md @@ -4,6 +4,20 @@ sidebar_position: 31 import PICO_SDK_WINDOWS from "../../../common/dev/\_pico-sdk-windows.mdx"; -# 在 Windows 下搭建 RP2040 的 C/C++ 编译环境 +# 在 Windows 下控制 RP2040 + +## 烧录 + +按下 BOOTSEL 键后, 会弹出一个 USB 设备。将编译后产生的 .uf2 文件拷贝到 RP2040 的 USB 设备中, 待该 USB 设备消失后, 程序开始执行。 + +## 示例 + + + + + + + + diff --git a/docs/x/x2l/software-development/c_sdk_examples.md b/docs/x/x2l/software-development/c_sdk_examples.md index b96c61da6..291880c38 100644 --- a/docs/x/x2l/software-development/c_sdk_examples.md +++ b/docs/x/x2l/software-development/c_sdk_examples.md @@ -10,7 +10,7 @@ import FAN from "../../../common/dev/\_pico-fan.mdx"; import RELATION from "./\_relation.mdx" import UART from "../../../common/dev/\_pico-uart.mdx"; -# 40-PIN 使用指南 +# Linux 下控制 RP2040 ## Intel J4125 与 RP2040 和 40-PIN GPIO 的关系介绍 diff --git a/docs/x/x4/software/c-sdk-windows.md b/docs/x/x4/software/c-sdk-windows.md index 39054339a..a699d3c4c 100644 --- a/docs/x/x4/software/c-sdk-windows.md +++ b/docs/x/x4/software/c-sdk-windows.md @@ -4,6 +4,32 @@ sidebar_position: 31 import PICO_SDK_WINDOWS from "../../../common/dev/\_pico-sdk-windows.mdx"; -# 在 Windows 下搭建 RP2040 的 C/C++ 编译环境 +# 在 Windows 下控制 RP2040 + +## 烧录 + +按下 BOOTSEL 键后, 会弹出一个 USB 设备。将编译后产生的 .uf2 文件拷贝到 RP2040 的 USB 设备中, 待该 USB 设备消失后, 程序开始执行。 + +## 示例 + +### RP2040 控制 40-PIN + + + + + + + + + + + + + + + + + + diff --git a/docs/x/x4/software/c_sdk_examples.md b/docs/x/x4/software/c_sdk_examples.md index f4d1215ab..092e2abda 100644 --- a/docs/x/x4/software/c_sdk_examples.md +++ b/docs/x/x4/software/c_sdk_examples.md @@ -12,7 +12,7 @@ import RELATION from "./\_relation.mdx" import UART from "../../../common/dev/\_pico-uart.mdx"; import INTEL_UART from "../../../common/dev/\_pico-gpio-controlled-by-intel.mdx"; -# 40-PIN 使用指南 +# Linux 下控制 RP2040 ## 概述 diff --git a/i18n/en/docusaurus-plugin-content-docs/current/common/dev/_pico-sdk-windows.mdx b/i18n/en/docusaurus-plugin-content-docs/current/common/dev/_pico-sdk-windows.mdx index 939e58eda..5bce25d66 100644 --- a/i18n/en/docusaurus-plugin-content-docs/current/common/dev/_pico-sdk-windows.mdx +++ b/i18n/en/docusaurus-plugin-content-docs/current/common/dev/_pico-sdk-windows.mdx @@ -1,4 +1,4 @@ -### 安装必要工具 +## 安装必要工具 - [Git for Windows](https://github.com/git-for-windows/git/releases/download/v2.47.1.windows.1/Git-2.47.1-64-bit.exe) @@ -48,7 +48,7 @@ - [Python3 for Windows](https://www.python.org/downloads/windows/) -### Set Environment Variables +## Set Environment Variables - Search for ‘Edit the system environment’ in the search bar. @@ -84,7 +84,7 @@ alt="pico path env" /> -### Build +## Build Open git bash, go to the pico-examples/build directory, and execute the following command to build the system diff --git a/i18n/en/docusaurus-plugin-content-docs/current/x/x2l/software-development/c-sdk-windows.md b/i18n/en/docusaurus-plugin-content-docs/current/x/x2l/software-development/c-sdk-windows.md index 0b5fdee1a..c85eebe94 100644 --- a/i18n/en/docusaurus-plugin-content-docs/current/x/x2l/software-development/c-sdk-windows.md +++ b/i18n/en/docusaurus-plugin-content-docs/current/x/x2l/software-development/c-sdk-windows.md @@ -4,6 +4,20 @@ sidebar_position: 31 import PICO_SDK_WINDOWS from "../../../common/dev/\_pico-sdk-windows.mdx"; -# Build C/C++ compilation environment for RP2040 on Windows +# Control RP2040 on Windows + +## Flash + +Press the BOOTSEL key and a USB device will pop up. Copy the compiled .uf2 file to the USB device of RP2040 and wait until the USB device disappears, then the programme will start to execute. + +## Examples + + + + + + + + diff --git a/i18n/en/docusaurus-plugin-content-docs/current/x/x2l/software-development/c_sdk_examples.md b/i18n/en/docusaurus-plugin-content-docs/current/x/x2l/software-development/c_sdk_examples.md index a73a8e4cd..5d0b6e018 100644 --- a/i18n/en/docusaurus-plugin-content-docs/current/x/x2l/software-development/c_sdk_examples.md +++ b/i18n/en/docusaurus-plugin-content-docs/current/x/x2l/software-development/c_sdk_examples.md @@ -10,13 +10,13 @@ import FAN from "../../../common/dev/\_pico-fan.mdx"; import RELATION from "./\_relation.mdx" import UART from "../../../common/dev/\_pico-uart.mdx"; -# 40-PIN Usage +# Control RP2040 on Linux ## Introduction to Intel N100 and RP2040 and 40-PIN GPIO Relationships -## 40-PIN Usage +## Control RP2040 on Linux In order to operate the IO resources on RP2040, we need a complete software environment, such as MicroPython or C/C++ SDK, here we mainly introduce a set of C/C++ SDKs, namely pico-sdk and pico-examples. pico-sdk mainly provides some APIs to operate the RP2040, while pico-examples provides a compilation framework for us to add our own programs according to the compilation framework provided by pico-examples. pico-sdk provides some APIs to operate the RP2040, while pico-examples provides a compilation framework for us to add our own programs according to the compilation framework provided by pico-examples. diff --git a/i18n/en/docusaurus-plugin-content-docs/current/x/x4/software/c-sdk-windows.md b/i18n/en/docusaurus-plugin-content-docs/current/x/x4/software/c-sdk-windows.md index 0b5fdee1a..6c0b1575c 100644 --- a/i18n/en/docusaurus-plugin-content-docs/current/x/x4/software/c-sdk-windows.md +++ b/i18n/en/docusaurus-plugin-content-docs/current/x/x4/software/c-sdk-windows.md @@ -4,6 +4,32 @@ sidebar_position: 31 import PICO_SDK_WINDOWS from "../../../common/dev/\_pico-sdk-windows.mdx"; -# Build C/C++ compilation environment for RP2040 on Windows +# Control RP2040 on Windows + +## Flash + +Press the BOOTSEL key and a USB device will pop up. Copy the compiled .uf2 file to the USB device of RP2040 and wait until the USB device disappears, then the programme will start to execute. + +## Examples + +### RP2040 Control the 40-PIN + + + + + + + + + + + + + + + + + + diff --git a/i18n/en/docusaurus-plugin-content-docs/current/x/x4/software/c_sdk_examples.md b/i18n/en/docusaurus-plugin-content-docs/current/x/x4/software/c_sdk_examples.md index a11f7ce7b..217d7b711 100644 --- a/i18n/en/docusaurus-plugin-content-docs/current/x/x4/software/c_sdk_examples.md +++ b/i18n/en/docusaurus-plugin-content-docs/current/x/x4/software/c_sdk_examples.md @@ -12,7 +12,7 @@ import RELATION from "./\_relation.mdx" import UART from "../../../common/dev/\_pico-uart.mdx"; import INTEL_UART from "../../../common/dev/\_pico-gpio-controlled-by-intel.mdx"; -# 40-PIN Usage +# Control RP2040 on Linux ## OverView