离线搭建 arduino IDE with esp32 开发环境

墙外很难连接

软件包官方原地址是:
https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json

反正在墙内连不上,直接改短点:

我的开发板:

开发板原理图
ESP32V2.pdf

开始操作:

  1. arduino-1.8.19 安装
    arduino-1.8.19-windows.zip

  2. http://XXXXXX/package_esp32_index.json

  1. json 文件放在下面路径内
    package_esp32_index.json
    C:\Users\用户名\AppData\Local\Arduino15
  1. 安装包放在下面路径内
    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

  2. 点击安装

  1. 参数设定

  2. 代码编译

    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
    }
  3. 程序烧录


  4. 运行