美文网首页
ESP8266 硬件学习

ESP8266 硬件学习

作者: bianruifeng | 来源:发表于2020-04-07 21:30 被阅读0次

软件:

硬件: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,选择版本去安装。

截屏2020-12-26 下午4.54.27.png

持久的等待。。。。。

手动安装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->选择版本->安装
会提示**验证失败,其实是你没有下载。寻着错误提示去下载就好了。

参考教程:https://www.pianshen.com/article/23891460964/

相关文章

网友评论

      本文标题:ESP8266 硬件学习

      本文链接:https://www.haomeiwen.com/subject/erpophtx.html