极客工坊

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 10499|回复: 6

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

[复制链接]
发表于 2013-12-10 18:13:13 | 显示全部楼层 |阅读模式
自己搭建的M16 系统 编译1602 液晶时 提示编译出错,不知哪位大神可以提供帮助? M8 编译时没有问题(编译时没问题,没接液晶板)。
回复

使用道具 举报

发表于 2013-12-10 21:02:06 | 显示全部楼层
贴程序和出现的错误吧
回复 支持 反对

使用道具 举报

 楼主| 发表于 2013-12-12 20:23:19 | 显示全部楼层
本人是用 示例中的LiqudCrystal   之中的 文件 ,板卡选用 arduino NG or older  w/ AT16mega
M16 的库文件 参见 http://www.geek-workshop.com/thread-2901-1-1.html
http://www.geek-workshop.com/for ... thread&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)'
回复 支持 反对

使用道具 举报

发表于 2013-12-13 08:13:19 来自手机 | 显示全部楼层
中文目录????
回复 支持 反对

使用道具 举报

发表于 2013-12-13 08:45:26 | 显示全部楼层
有可能是中文目录或者目录中有空格导致的。

先换个目录试试吧
回复 支持 反对

使用道具 举报

发表于 2013-12-13 09:46:21 | 显示全部楼层
本帖最后由 弘毅 于 2013-12-13 09:47 编辑

是不是LiqudCrystal中调用了一些寄存器配置?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2013-12-23 16:29:34 | 显示全部楼层
谢谢 几位高人提醒逐个去试试
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|联系我们|极客工坊

GMT+8, 2026-6-14 00:02 , Processed in 0.040077 second(s), 21 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表