esp8266编译错误error: 'D4' was not declared in this scope-Arduino中文社区 - Powered by Discuz!

Arduino中文社区

 找回密码
 立即注册

QQ登录

只需一步,快速开始

查看: 656|回复: 2

[已解决] esp8266编译错误error: 'D4' was not declared in this scope

[复制链接]
发表于 2022-2-2 21:08 | 显示全部楼层 |阅读模式
sketch_nov03a:24:20: error: 'D4' was not declared in this scope
sketch_nov03a:28:54: error: 'D5' was not declared in this scope
sketch_nov03a:28:68: error: 'D7' was not declared in this scope
sketch_nov03a:28:81: error: 'D8' was not declared in this scope; did you mean 's8'?
sketch_nov03a:28:92: error: 'D2' was not declared in this scope
sketch_nov03a:28:103: error: 'D3' was not declared in this scope
exit status 1
'D4' was not declared in this scope


发表于 2022-2-3 12:30 | 显示全部楼层
你选择的开发版型号没有定义这些引脚导致的。直接把Dx这些引脚改成gpio编号即可
发表于 2022-2-3 06:51 | 显示全部楼层
把D2-D8换成GPIO对应的端口数。
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

小黑屋|Archiver|手机版|Arduino中文社区

GMT+8, 2024-11-28 16:00 , Processed in 0.072443 second(s), 16 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表