冰棱下 发表于 2016-12-5 10:35:01

ds18b20调试中的错误

各位大神,为什么一直出现这种错误
Arduino:1.6.12 (Windows 10), 开发板:"Arduino/Genuino Uno"

错误信息如下
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

在文件 -> 首选项开启
“编译过程中显示详细输出”选项
这份报告会包含更多信息。
页: [1]
查看完整版本: ds18b20调试中的错误