ESP32C3-CORE+PlatformIO教程
简述合宙ESP32C3-CORE+PlatformIO点亮LED操作
由于最近买了一块ESP32-C3开发板,但是官方只有lua教程,所以记录一下PlatformIO编译过程,以防我以后年级大了会忘记。
一、开发板
ESP32C3-CORE开发板,产品描述:https://wiki.luatos.com/chips/esp32c3/board.html
管脚定义如下:
合宙CORE ESP32核心板板载2颗LED,开发者可参考下表进行对应管脚的控制。
二、开发环境
功能快捷键
1.下载vscode:vscode下载
2.配置PlatFormIO IDE:https://blog.csdn.net/kimiyang123/article/details/110871196
3.配置固件
- 找到PIO固件安装目录:C:\Users\(自己的用户名).platformio\platforms\espressif32\boards
- 复制esp32-c3-devkim-1.jason文件并重命名为esp32-c3-laut.jason文件
esp32-c3-laut.jason
{
"build": {
"arduino":{
"ldscript": "esp32c3_out.ld"
},
"core": "esp32",
"f_cpu": "160000000L",
"f_flash": "80000000L",
"flash_mode": "dio",
"extra_flags": "-DARDUINO_ESP32C3_DEV",
"mcu": "esp32c3",
"variant": "esp32c3"
},
"connectivity": [
"wifi