[讨论交流]esp8266编译出错

2020-5-15 23:19:12 [显示全部楼层]
5347浏览
查看: 5347|回复: 1

[讨论交流] esp8266编译出错

[复制链接]
esp8266编译smartlight示例出错


Arduino:1.8.12 (Windows 10), 开发板:"NodeMCU 1.0 (ESP-12E Module), 80 MHz, Flash, Legacy (new can return nullptr), All SSL ciphers (most compatible), 4MB (FS:2MB OTA:~1019KB), 2, v2 Lower Memory, Disabled, None, Only Sketch, 115200"

C:\Program Files (x86)\Arduino\libraries\WiFi\src\utility\wifi_drv.cpp: In static member function 'static uint8_t WiFiDrv::getEncTypeNetowrks(uint8_t)':

C:\Program Files (x86)\Arduino\libraries\WiFi\src\utility\wifi_drv.cpp:451:10: warning: converting to non-pointer type 'uint8_t {aka unsigned char}' from NULL [-Wconversion-null]

   return NULL;

          ^

C:\Program Files (x86)\Arduino\libraries\WiFi\src\utility\wifi_drv.cpp: In static member function 'static int32_t WiFiDrv::getRSSINetoworks(uint8_t)':

C:\Program Files (x86)\Arduino\libraries\WiFi\src\utility\wifi_drv.cpp:476:10: warning: converting to non-pointer type 'int' from NULL [-Wconversion-null]

   return NULL;

          ^

C:\Users\hp\Documents\Arduino\libraries\DFRobot_Aliyun\Tone32.cpp: In function 'void tone(uint8_t, unsigned int, long unsigned int, uint8_t)':

C:\Users\hp\Documents\Arduino\libraries\DFRobot_Aliyun\Tone32.cpp:5:25: error: 'ledcRead' was not declared in this scope

     if (ledcRead(channel)) {

                         ^

C:\Users\hp\Documents\Arduino\libraries\DFRobot_Aliyun\Tone32.cpp:9:31: error: 'ledcAttachPin' was not declared in this scope

     ledcAttachPin(pin, channel);

                               ^

C:\Users\hp\Documents\Arduino\libraries\DFRobot_Aliyun\Tone32.cpp:11:36: error: 'ledcSetup' was not declared in this scope

     ledcSetup(channel, frequency, 8);

                                    ^

C:\Users\hp\Documents\Arduino\libraries\DFRobot_Aliyun\Tone32.cpp:14:27: error: 'ledcWrite' was not declared in this scope

         ledcWrite(pin, 128);

                           ^

C:\Users\hp\Documents\Arduino\libraries\DFRobot_Aliyun\Tone32.cpp: In function 'void noTone(uint8_t, uint8_t)':

C:\Users\hp\Documents\Arduino\libraries\DFRobot_Aliyun\Tone32.cpp:22:22: error: 'ledcDetachPin' was not declared in this scope

     ledcDetachPin(pin);

                      ^

C:\Users\hp\Documents\Arduino\libraries\DFRobot_Aliyun\Tone32.cpp:23:25: error: 'ledcWrite' was not declared in this scope

     ledcWrite(channel, 0);

                         ^

exit status 1
为开发板 NodeMCU 1.0 (ESP-12E Module) 编译时出错。

在文件 -> 首选项开启
“编译过程中显示详细输出”选项
这份报告会包含更多信息。

pATAq  版主

发表于 2020-5-16 00:09:26

建议你提供更详细的信息,比如用的什么板子,加载的什么库,ino代码。
我看你的报错信息是采用了DFRobot_Aliyun库,搜索资料显示是Gravity:Starter Kit for Aliyun IoT 阿里云IoT入门套件,但是该库适用于FireBeetle Board-ESP32主板,而你的是esp8266,没猜错的话这就是原因所在。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

为本项目制作心愿单
购买心愿单
心愿单 编辑
[[wsData.name]]

硬件清单

  • [[d.name]]
btnicon
我也要做!
点击进入购买页面
关于楼主

楼主的其它帖子

上海智位机器人股份有限公司 沪ICP备09038501号-4

© 2013-2024 Comsenz Inc. Powered by Discuz! X3.4 Licensed

mail