VSCode搭建platformio环境下载受限配置方法



前言

本文章主要解决国内用户VSCode搭建platformio环境下载受限的解决方法


一、找到文件夹位置

配置文件位置:
Windows:C:\Users\你的用户名\.platformioor%USERPROFILE%\.platformio

二、新建配置文件

文件名:.pioconfig

[env]
platformio.platforms_dir = C:\Users\你的用户名\.platformio\platforms
platformio.packages_dir = C:\Users\你的用户名\.platformio\packages
platformio.cache_dir = C:\Users\你的用户名\.platformio\.cache

[package]
; 阿里云ESP32工具链镜像
mirror.espressif = https://mirrors.aliyun.com/espressif/
;这个是github镜像加速地址
;mirror.espressif = https://v6.gh-proxy.com/https://github.com/espressif/
; 清华PyPI镜像(用于pip)
mirror.pypi = https://pypi.tuna.tsinghua.edu.cn/simple/
; 阿里云PlatformIO包镜像
mirror.platformio = https://mirrors.aliyun.com/platformio/
;这个是github镜像加速地址
;mirror.espressif = https://v6.gh-proxy.com/https://github.com/platformio/
Logo

Agent 垂直技术社区,欢迎活跃、内容共建。

更多推荐