在ESP8266的众多开发方式中,Arduino开发方式深受玩家喜爱,强大的Arduino生态为ESP8266的开发提供了便利。工欲善其事,必先利其器,本篇介绍Arduino IDE搭建ESP8266开发环境。
1. Arduino IDE安装
arduino官网提供了不同平台的Arduino IDE安装包,当前最新版本1.8.16,对应自己的电脑系统进行下载即可。

下载后,双击可执行文件,按照安装步骤安装好Arduino IDE。

2. 安装ESP8266支持
点击文件—首选项,打开首选项对话框,在“附加到开发板管理网址”中,输入以下网址:
http://arduino.esp8266.com/stable/package_esp8266com_index.json

重启IDE,点击工具—开发板—开发板管理器,在搜索栏中输入“esp8266”,找到ESP8266插件。在下拉选项中选择最新版本进行安装,安装过程受网络环境影响。若反复安装失败,可百度相关的一键安装文件。

3. 选择ESP8266开发板
ESP8266插件安装完成后,点击工具—开发板,可以看到在Arduino AVR Boards外,新增加了ESP8266 Boards,里面包含了众多ESP8266开发板支持。

至此,ESP8266的Arduino开发环境就安装完成了,后续就可以连接开发板编写程序使用ESP8266了。
关注公众号「TonyCode」。
个人博客
