flystone39 发表于 2013-12-10 18:13:13

求助 万能的论坛 M16 搭建的ARDUINO 无法编译 1602液晶

自己搭建的M16 系统 编译1602 液晶时 提示编译出错,不知哪位大神可以提供帮助? M8 编译时没有问题(编译时没问题,没接液晶板)。

zoologist 发表于 2013-12-10 21:02:06

贴程序和出现的错误吧

flystone39 发表于 2013-12-12 20:23:19

本人是用 示例中的LiqudCrystal   之中的 文件 ,板卡选用 arduino NG or olderw/ AT16mega
M16 的库文件 参见 http://www.geek-workshop.com/thread-2901-1-1.html
http://www.geek-workshop.com/forum.php?mod=viewthread&tid=3017

然后点击 “ 程序” ”"校验/编译 " 后出现下列错误提示

In file included from C:\Documents and Settings\Administrator\桌面\arduino-1.0.5\hardware\M2Arduino\cores\M2Arduino/Arduino.h:212,
               from Blink.ino:43:
C:\Documents and Settings\Administrator\桌面\arduino-1.0.5\hardware\M2Arduino\cores\M2Arduino/pins_arduino.h:48:1: warning: "TIMER5A" redefined
In file included from Blink.ino:43:
C:\Documents and Settings\Administrator\桌面\arduino-1.0.5\hardware\M2Arduino\cores\M2Arduino/Arduino.h:181:1: warning: this is the location of the previous definition
In file included from C:\Documents and Settings\Administrator\桌面\arduino-1.0.5\hardware\M2Arduino\cores\M2Arduino/Arduino.h:212,
               from Blink.ino:43:
C:\Documents and Settings\Administrator\桌面\arduino-1.0.5\hardware\M2Arduino\cores\M2Arduino/pins_arduino.h:49:1: warning: "TIMER5B" redefined
In file included from Blink.ino:43:
C:\Documents and Settings\Administrator\桌面\arduino-1.0.5\hardware\M2Arduino\cores\M2Arduino/Arduino.h:182:1: warning: this is the location of the previous definition
In file included from C:\Documents and Settings\Administrator\桌面\arduino-1.0.5\hardware\M2Arduino\cores\M2Arduino/Arduino.h:212,
               from Blink.ino:43:
C:\Documents and Settings\Administrator\桌面\arduino-1.0.5\hardware\M2Arduino\cores\M2Arduino/pins_arduino.h:50:1: warning: "TIMER5C" redefined
In file included from Blink.ino:43:
C:\Documents and Settings\Administrator\桌面\arduino-1.0.5\hardware\M2Arduino\cores\M2Arduino/Arduino.h:183:1: warning: this is the location of the previous definition
In file included from Blink.ino:40:
C:\Documents and Settings\Administrator\桌面\arduino-1.0.5\libraries\LiquidCrystal/LiquidCrystal.h:82: error: conflicting return type specified for 'virtual size_t LiquidCrystal::write(uint8_t)'
C:\Documents and Settings\Administrator\桌面\arduino-1.0.5\hardware\M2Arduino\cores\M2Arduino/Print.h:40: error:   overriding 'virtual void Print::write(uint8_t)'

maxims 发表于 2013-12-13 08:13:19

中文目录????

zoologist 发表于 2013-12-13 08:45:26

有可能是中文目录或者目录中有空格导致的。

先换个目录试试吧

弘毅 发表于 2013-12-13 09:46:21

本帖最后由 弘毅 于 2013-12-13 09:47 编辑

是不是LiqudCrystal中调用了一些寄存器配置?

flystone39 发表于 2013-12-23 16:29:34

谢谢 几位高人提醒逐个去试试
页: [1]
查看完整版本: 求助 万能的论坛 M16 搭建的ARDUINO 无法编译 1602液晶