|
发表于 2016-11-10 10:33:57
|
显示全部楼层
出错啦!!!!!!!!!!!!!!!!!!
Arduino:1.7.10 (Windows 8.1), 板:"Arduino Uno"
HMC5883L.cpp: In member function 'void HMC5883L::Write(int, int)':
HMC5883L.cpp:114:8: error: 'class TwoWire' has no member named 'send'
Wire.send(address);
^
HMC5883L.cpp:115:8: error: 'class TwoWire' has no member named 'send'
Wire.send(data);
^
HMC5883L.cpp: In member function 'uint8_t* HMC5883L::Read(int, int)':
HMC5883L.cpp:122:8: error: 'class TwoWire' has no member named 'send'
Wire.send(address);
^
HMC5883L.cpp:133:22: error: 'class TwoWire' has no member named 'receive'
buffer[i] = Wire.receive();
^
编译有误。
报告将会包含更多的信息
"在编译时,输出详细信息"
在 文件>首选项 中启用 |
|