软件:
-
VSCode
+PlatformIO
、alios-studio
、Arduino
等插件 -
Arduino
开发板 社区:https://www.arduino.cn/thread-94423-1-1.html
截屏.png
硬件:ESP8266
感觉alios
的这个不太好用。
一、下面以 VSCode + PlatformIO
为例
创建项目:
截屏.png

main.cpp 启动程序代码
platformio.ini 项目配置代码
代码示例:
https://blog.csdn.net/wowocpp/article/details/81151600
https://www.cnblogs.com/liming19680104/p/11196822.html
https://www.cnblogs.com/liming19680104/p/11213796.html
https://blog.csdn.net/happyjoey217/article/details/90406015
https://blog.csdn.net/qq_35105528/article/details/89452512
https://blog.csdn.net/happyjoey217/article/details/90199308
二、arduino+ESP 8266
1、先修改
arduino->首选项->附加开发板管理器网址:https://arduino.esp8266.com/stable/package_esp8266com_index.json
2、工具->开发板->开发板管理器
搜索8266,选择版本去安装。

持久的等待。。。。。
手动安装ESP 8266 开发板2.7.4
链接: https://pan.baidu.com/s/1fxgLBBfRV4ibQ-fAadM-HA 提取码: t3n6
将下载的文件解压到/Users/Mac/Library/Arduino15/staging/packages

重复上边步骤二,版本选择你下载的版本安装。
如果需要特定版本:
arduino->首选项->网络->人工代理->选择socks->其他什么都不填写
附加开发板管理器网址:https://arduino.esp8266.com/stable/package_esp8266com_index.json
到工具->开发板->开发板管理器->搜8266->选择版本->安装
会提示**验证失败,其实是你没有下载。寻着错误提示去下载就好了。


网友评论