调试DS18b20时程序出现这个问题,请大家帮忙改正错误。
错误信息如下
C:\Users\iice\Desktop\wendu2\wendu2.ino:2:31: warning: extra tokens at end of #include directive
#include <DallasTemperature.h>聽
^
wendu2:8: error: stray '\302' in program
OneWire oneWire(ONE_WIRE_BUS);
^
wendu2:8: error: stray '\240' in program
wendu2:7: error: 'oneWire' was not declared in this scope
DallasTemperature sensors(&oneWire);
^
exit status 1
stray '\302' in program
在文件 -> 首选项开启
“编译过程中显示详细输出”选项
这份报告会包含更多信息。
错误信息如下
C:\Users\iice\Desktop\wendu2\wendu2.ino:2:31: warning: extra tokens at end of #include directive
#include <DallasTemperature.h>聽
^
wendu2:8: error: stray '\302' in program
OneWire oneWire(ONE_WIRE_BUS);
^
wendu2:8: error: stray '\240' in program
wendu2:7: error: 'oneWire' was not declared in this scope
DallasTemperature sensors(&oneWire);
^
exit status 1
stray '\302' in program
在文件 -> 首选项开启
“编译过程中显示详细输出”选项
这份报告会包含更多信息。