# unihikerPIO_install_instrucion **Repository Path**: yeezb/unihiker-pio_install_instrucion ## Basic Information - **Project Name**: unihikerPIO_install_instrucion - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-10-13 - **Last Updated**: 2025-10-17 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 安装软件 1. 安装[Git](https://git-scm.com/downloads/win) 2. 安装[VSCode](https://code.visualstudio.com/Download) 3. 安装[CLion](https://www.jetbrains.com/zh-cn/clion/download/?section=windows)
推荐Windows电脑。使用默认位置安装即可,如果自己电脑已经安装相关软件则可跳过。
workshop主要用CLion编译K10代码。
VSCode只用于安装PlatformIO core,支持图形化安装更简便。 CLion直接安装可参考[此文档](https://docs.platformio.org/en/latest/integration/ide/clion.html#ide-clion)。
Git用于拉取K10板卡信息 # 通过VSCode安装Platform IO环境 第二第三步需要全程**保持科学上网环境,并开启虚拟网卡(TUN模式)** 并且关闭电脑任何防护软件(包括火绒) 1. 打开VSCode,在Extension(扩展)中搜索Platform IO并安装。 等待安装进度条走完后再继续操作 ![](/img/VSCODE1.png) 2. 在Platform IO中新建项目。 ![](/img/VSCODE2.png) 随便选择一个DFRobot的板子新建项目即可 ![](/img/VSCODE5.png) 此步骤需要从PIO官网拉取文件,耗时较长,**等待进度条走完后**在进行后续操作 3. 在该项目**platformio.ini**中,将文件替换为如下 ````bash title="Screen Display" [env:unihiker] platform = https://github.com/DFRobot/platform-unihiker.git board = unihiker_k10 framework = arduino build_flags = -DARDUINO_USB_CDC_ON_BOOT=1 -DARDUINO_USB_MODE=1 -DModel=None ```` ![](/img/VSCODE4.png) 此步骤从DFRobot服务器上拉取Unihiker K10文件。耗时约5分钟。 出现successful,说明安装成功。 # CLion中新建Platform IO项目 1. 打开CLion,在插件安装市场中,安装**Platform IO**以及**JetBrains AI插件** ![](img/CLion3.png) 文件->新建->项目->PlatformIO->DFRobot下找到UNIHIKER K10 说明安装环境成功 ![](/img/CLion.png) 2. 使用Arduino环境新建一个UNIHIKER K10项目
等待下方**进度条走完**,点击上方**运行按钮**,构建项目后出现successfully create esp32 image即可。如果没有连接UNIHIKER K10硬件,所以会卡在Connecting阶段 ![](/img/CLion2.png) # 示例代码 行空板K10示例代码可参考[此文档](https://www.unihiker.com.cn/wiki/k10/Arduino_PIO_Example)