乐鑫ESP8266 NodeMcu V3 记录

1.配置Arduino IDE

Arduino IDE -> 文件 -> 首选项 -> 其他开发板管理地址

添加:http://arduino.esp8266.com/stable/package_esp8266com_index.json

打开开发板管理器 搜索ESP8266 选择最新版下载

2.连接到Arduino IDE

选择开发板型号:Generic ESP8266 Module

3.报错解决

3.1 上传时报错

A fatal esptool.py error occurred: Cannot configure port, something went wrong. Original message: PermissionError

问题原因:WIN11上 CH340驱动问题

解决:CH340 Drivers for Windows, Mac and Linux

3.2 上传时报错A fatal esptool.py error occurred: index out of range

解决:下载了Arduino1.8.6版本并在该版本安装了2.5.0的ESP8266包,问题解决,但不知道具体什么原因

参考视频

lolin new nodemcu v3 - 搜索 视频

4.代码示例

4.1 LED灯闪烁

#define LED_BUILTIN 2

void setup() {
  // put your setup code here, to run once:
  pinMode(LED_BUILTIN,OUTPUT);
}

void loop() {
  // put your main code here, to run repeatedly:
  digitalWrite(LED_BUILTIN,HIGH);
  delay(1000);
  digitalWrite(LED_BUILTIN,LOW);
  delay(1000);
}
  • 20
    点赞
  • 5
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值