离线搭建 arduino IDE with esp32 开发环境
墙外很难连接
软件包官方原地址是:
https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json
反正在墙内连不上,直接改短点:
我的开发板:
开发板原理图
ESP32V2.pdf
开始操作:
arduino-1.8.19 安装
arduino-1.8.19-windows.zip
- json 文件放在下面路径内
package_esp32_index.json
C:\Users\用户名\AppData\Local\Arduino15
安装包放在下面路径内
esp32-2.0.5.zip
esptool-4.2.1-windows.zip
mkspiffs-0.2.3-arduino-esp32-win32.zip
i686-w64-mingw32.mklittlefs-c41e51a.200706.zip
riscv32-esp-elf-gcc8_4_0-esp-2021r2-patch3-win32.zip
xtensa-esp32-elf-gcc8_4_0-esp-2021r2-patch3-win32.zip
xtensa-esp32s2-elf-gcc8_4_0-esp-2021r2-patch3-win32.zip
xtensa-esp32s3-elf-gcc8_4_0-esp-2021r2-patch3-win32.zip
C:\Users\用户名\AppData\Local\Arduino15\staging\packages点击安装
参数设定
代码编译
1
2
3
4
5
6
7
8
9
10
11
12#define LED_BUILTIN 2
void setup() {
pinMode(LED_BUILTIN, OUTPUT);
}
void loop() {
digitalWrite(LED_BUILTIN, HIGH); // turn the LED on (HIGH is the voltage level)
delay(500); // wait for a second
digitalWrite(LED_BUILTIN, LOW); // turn the LED off by making the voltage LOW
delay(1000); // wait for a second
}程序烧录
运行