WiFiduino的头文件
写了个程序,结果提示为开发板 WiFiduino 编译时出错,然后我上传示例代码没问题,但把自己程序中的头文件加到示例代码里面就提示一样的错误,请问wifiduino就是这样的吗,还是我操作不对看报错信息,通常都会指明原因 奈何col 发表于 2020-9-24 21:10
看报错信息,通常都会指明原因
In file included from C:\Users\86178\Desktop\_\_.ino:4:0:
C:\Users\86178\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.6.3\libraries\Wire/Wire.h: In function 'void getAngularAcceleration()':
C:\Users\86178\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.6.3\libraries\Wire/Wire.h:71:13: note: candidate 1: uint8_t TwoWire::requestFrom(int, int, int)
uint8_t requestFrom(int, int, int);
^
C:\Users\86178\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.6.3\libraries\Wire/Wire.h:65:12: note: candidate 2: size_t TwoWire::requestFrom(uint8_t, size_t, bool)
size_t requestFrom(uint8_t address, size_t size, bool sendStop);
^
C:\Users\86178\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.6.3\libraries\Wire/Wire.h:71:13: note: candidate 1: uint8_t TwoWire::requestFrom(int, int, int)
uint8_t requestFrom(int, int, int);
^
C:\Users\86178\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.6.3\libraries\Wire/Wire.h:65:12: note: candidate 2: size_t TwoWire::requestFrom(uint8_t, size_t, bool)
size_t requestFrom(uint8_t address, size_t size, bool sendStop);
^
In file included from C:\Users\86178\Documents\Arduino\libraries\DHTLib\dht.h:18:0,
from C:\Users\86178\Documents\Arduino\libraries\DHTLib\dht.cpp:30:
C:\Users\86178\Documents\Arduino\libraries\DHTLib\dht.cpp: In member function 'int dht::_readSensor(uint8_t, uint8_t)':
C:\Users\86178\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.6.3\cores\esp8266/Arduino.h:214:118: error: cannot convert 'volatile uint32_t* {aka volatile unsigned int*}' to 'volatile uint8_t* {aka volatile unsigned char*}' in initialization
#define portInputRegister(port) (((port)==_PORT_GPIO16)?((volatile uint32_t*) &GP16I):((volatile uint32_t*) &GPI))
^
C:\Users\86178\Documents\Arduino\libraries\DHTLib\dht.cpp:116:29: note: in expansion of macro 'portInputRegister'
volatile uint8_t *PIR = portInputRegister(port);
^
exit status 1
为开发板 WiFiduino 编译时出错。
以上时报错信息 但我看不懂 麻烦您能帮我看一下吗谢谢 C:\Users\86178\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.6.3\cores\esp8266/Arduino.h:214:118: error: cannot convert 'volatile uint32_t* {aka volatile unsigned int*}' to 'volatile uint8_t* {aka volatile unsigned char*}' in initialization
可能是你使用了不支持8266的库 奈何col 发表于 2020-9-26 23:34
C:%users\86178\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.6.3\cores\esp8266/Arduino ...
好的 谢谢
页:
[1]