在Arduino IDE 上安装ESP32开发环境有两种方式:
方式一:IDE添加链接方式二:下载源码安装点击左上角“文件”–>首选项–>附加开发板管理器网址–>在输入框里面输入网址https://git.oschina.net/dfrobot/FireBeetle-ESP32/raw/master/package_esp32_index.json
点击好,软件就会自己安装了,安装好后重新启动一下Arduino IDE软件。
在arduino开发环境的安装目录arduino-1.8.4\hardware下建立一个文件夹 espressif,然后将arduino-esp32源码克隆到这个目录下。
在文件夹里点右键,选择git bash here(前提是你已经安装了Git) 命令行输入:git clone https://github.com/espressif/arduino-esp32.git
Git下载太慢了可以直接下载。然后解压到这个文件下面也是一样的。
源码地址:https://github.com/espressif/arduino-esp32
等到下载完毕,进入文件夹 arduino-1.8.4\hardware\espressif\arduino-esp32\tool 点击get.exe就可以了
arduino-1.8.4\hardware\espressif\esp32