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 pico-sdk windows for x series #595

Closed
wants to merge 15 commits into from
6 changes: 3 additions & 3 deletions docs/common/dev/_pico-sdk-windows.mdx
Original file line number Diff line number Diff line change
@@ -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)

Expand Down Expand Up @@ -48,7 +48,7 @@

- [Python3 for Windows](https://www.python.org/downloads/windows/)

## 设置环境变量
### 设置环境变量

- 在搜索栏搜索 "编辑系统环境"

Expand Down Expand Up @@ -84,7 +84,7 @@
alt="pico path env"
/>

## 构建编译
### 构建编译

打开 git bash, 进入到 pico-examples/build 目录下,执行以下命令进行构建编译

Expand Down
8 changes: 6 additions & 2 deletions docs/x/x2l/software-development/c-sdk-windows.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,17 @@ import RELATION from "./\_relation.mdx"

<RELATION />

## 40-PIN 使用

为了操作 RP2040 上的 IO 资源, 我们需要一套完善的软件环境,如 MicroPython 或者 C/C++ SDK,在这里我们主要介绍一套 C/C++ SDK,即 pico-sdk 和 pico-example。 pico-sdk 主要是提供了一些操作 RP2040 的 API, 而 pico-examples 则为我们提供了一套程序编译框架,我们可以根据 pico-examples 提供的编译框架来添加我们自己的程序。

<PICO_SDK_WINDOWS />

## 烧录
### 烧录

按下 BOOTSEL 键后, 会弹出一个 USB 设备。将编译后产生的 .uf2 文件拷贝到 RP2040 的 USB 设备中, 待该 USB 设备消失后, 程序开始执行。

## 示例
### 示例

<Tabs queryString="type">
<TabItem value="GPIO">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## Install necessary Tools
### Install necessary Tools

- [Git for Windows](https://github.com/git-for-windows/git/releases/download/v2.47.1.windows.1/Git-2.47.1-64-bit.exe)

Expand Down Expand Up @@ -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.

Expand Down Expand Up @@ -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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,21 @@ import RELATION from "./\_relation.mdx"

# Control RP2040 on Windows

## Relation introduction between J4215 and 40-PIN GPIO
## introducts relationship between J4215 and 40-PIN GPIO
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

首字母大写


<RELATION />

## 40 PIN Usage

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.

<PICO_SDK_WINDOWS />

## Flash
### 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
### Examples

<Tabs queryString="type">
<TabItem value="GPIO">
Expand Down
Loading