极客工坊

 找回密码
 注册

QQ登录

只需一步,快速开始

楼主: Randy

arduino学习笔记33 - Mega 2560+TFT3.2寸屏的演示实验

  [复制链接]
 楼主| 发表于 2012-12-19 09:07:29 | 显示全部楼层
xu26118 发表于 2012-12-18 17:41
编译出错。。。。。

In file included from sketch_dec18a.ino:1:

换0023的IDE试一下!
回复 支持 反对

使用道具 举报

发表于 2013-3-12 20:14:07 | 显示全部楼层
这个程序大家有谁真正测试过吗?我试了好久都没成功。
老是报:no matching function for call to 'ITDB02::setFont()uint8_t[])'
以下是报错内容:
In file included from ITDB02_Graph16_Demo_Landscape.pde:18:
E:\arduino-1.0.3\libraries\ITDB02_Graph161/ITDB02_Graph16.h:69:22: error: WProgram.h: No such file or directory
In file included from ITDB02_Graph16_Demo_Landscape.pde:18:
E:\arduino-1.0.3\libraries\ITDB02_Graph161/ITDB02_Graph16.h:73: error: ISO C++ forbids declaration of 'uint8_t' with no type
E:\arduino-1.0.3\libraries\ITDB02_Graph161/ITDB02_Graph16.h:73: error: expected ';' before '*' token
E:\arduino-1.0.3\libraries\ITDB02_Graph161/ITDB02_Graph16.h:74: error: 'uint8_t' does not name a type
E:\arduino-1.0.3\libraries\ITDB02_Graph161/ITDB02_Graph16.h:75: error: 'uint8_t' does not name a type
E:\arduino-1.0.3\libraries\ITDB02_Graph161/ITDB02_Graph16.h:76: error: 'uint8_t' does not name a type
E:\arduino-1.0.3\libraries\ITDB02_Graph161/ITDB02_Graph16.h:77: error: 'uint8_t' does not name a type
E:\arduino-1.0.3\libraries\ITDB02_Graph161/ITDB02_Graph16.h:84: error: 'byte' has not been declared
E:\arduino-1.0.3\libraries\ITDB02_Graph161/ITDB02_Graph16.h:85: error: 'byte' has not been declared
E:\arduino-1.0.3\libraries\ITDB02_Graph161/ITDB02_Graph16.h:89: error: 'byte' has not been declared
E:\arduino-1.0.3\libraries\ITDB02_Graph161/ITDB02_Graph16.h:89: error: 'byte' has not been declared
E:\arduino-1.0.3\libraries\ITDB02_Graph161/ITDB02_Graph16.h:89: error: 'byte' has not been declared
E:\arduino-1.0.3\libraries\ITDB02_Graph161/ITDB02_Graph16.h:96: error: 'byte' has not been declared
E:\arduino-1.0.3\libraries\ITDB02_Graph161/ITDB02_Graph16.h:96: error: 'byte' has not been declared
E:\arduino-1.0.3\libraries\ITDB02_Graph161/ITDB02_Graph16.h:96: error: 'byte' has not been declared
E:\arduino-1.0.3\libraries\ITDB02_Graph161/ITDB02_Graph16.h:97: error: 'byte' has not been declared
E:\arduino-1.0.3\libraries\ITDB02_Graph161/ITDB02_Graph16.h:97: error: 'byte' has not been declared
E:\arduino-1.0.3\libraries\ITDB02_Graph161/ITDB02_Graph16.h:97: error: 'byte' has not been declared
E:\arduino-1.0.3\libraries\ITDB02_Graph161/ITDB02_Graph16.h:100: error: 'byte' has not been declared
E:\arduino-1.0.3\libraries\ITDB02_Graph161/ITDB02_Graph16.h:101: error: 'uint8_t' has not been declared
E:\arduino-1.0.3\libraries\ITDB02_Graph161/ITDB02_Graph16.h:106: error: 'byte' does not name a type
E:\arduino-1.0.3\libraries\ITDB02_Graph161/ITDB02_Graph16.h:107: error: 'byte' does not name a type
E:\arduino-1.0.3\libraries\ITDB02_Graph161/ITDB02_Graph16.h:108: error: 'byte' does not name a type
E:\arduino-1.0.3\libraries\ITDB02_Graph161/ITDB02_Graph16.h:110: error: ISO C++ forbids declaration of 'uint8_t' with no type
E:\arduino-1.0.3\libraries\ITDB02_Graph161/ITDB02_Graph16.h:110: error: expected ';' before '*' token
E:\arduino-1.0.3\libraries\ITDB02_Graph161/ITDB02_Graph16.h:111: error: 'uint8_t' does not name a type
E:\arduino-1.0.3\libraries\ITDB02_Graph161/ITDB02_Graph16.h:118: error: 'byte' has not been declared
E:\arduino-1.0.3\libraries\ITDB02_Graph161/ITDB02_Graph16.h:118: error: 'byte' has not been declared
E:\arduino-1.0.3\libraries\ITDB02_Graph161/ITDB02_Graph16.h:118: error: 'byte' has not been declared
E:\arduino-1.0.3\libraries\ITDB02_Graph161/ITDB02_Graph16.h:121: error: 'byte' has not been declared
E:\arduino-1.0.3\libraries\ITDB02_Graph161/ITDB02_Graph16.h:122: error: 'word' has not been declared
E:\arduino-1.0.3\libraries\ITDB02_Graph161/ITDB02_Graph16.h:122: error: 'word' has not been declared
E:\arduino-1.0.3\libraries\ITDB02_Graph161/ITDB02_Graph16.h:122: error: 'word' has not been declared
E:\arduino-1.0.3\libraries\ITDB02_Graph161/ITDB02_Graph16.h:122: error: 'word' has not been declared
E:\arduino-1.0.3\libraries\ITDB02_Graph161/ITDB02_Graph16.h:123: error: 'byte' has not been declared
ITDB02_Graph16_Demo_Landscape.pde: In function 'void setup()':
ITDB02_Graph16_Demo_Landscape:35: error: no matching function for call to 'ITDB02::setFont(uint8_t [])'
E:\arduino-1.0.3\libraries\ITDB02_Graph161/ITDB02_Graph16.h:101: note: candidates are: void ITDB02::setFont(int*)
回复 支持 反对

使用道具 举报

 楼主| 发表于 2013-3-13 09:16:10 | 显示全部楼层
lbsip 发表于 2013-3-12 20:14
这个程序大家有谁真正测试过吗?我试了好久都没成功。
老是报:no matching function for call to 'ITDB02: ...

仔细看帖子,需要修好点东西啊!
回复 支持 反对

使用道具 举报

发表于 2013-3-13 10:01:41 | 显示全部楼层
。。。。。。不要吓我啊。。。本来看着挺好的。
回复 支持 反对

使用道具 举报

发表于 2013-3-13 19:41:51 | 显示全部楼层
好东西,lz有没有试过SD卡读取功能和触屏功能,可以的话展示几个例子看看,我还不会用这个板子,看了你的example之后,把绘图的命令到是学到了不少,其余就都不会了~~
回复 支持 反对

使用道具 举报

发表于 2013-3-13 22:02:13 | 显示全部楼层
本帖最后由 lbsip 于 2013-3-14 19:25 编辑

首先谢谢楼主的关心!
我换用0023的arduino IDE编译是没出错了,但我按楼主的接法接屏,下载程序后只见屏的背光灯亮,没见屏幕有任何字符或图像显示,不知是哪里还有问题?望楼主和个兄弟赐教。我的屏上的接口是这样的:

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?注册

x
回复 支持 反对

使用道具 举报

发表于 2013-4-7 15:11:43 | 显示全部楼层
佩服LZ,有空也试试
回复 支持 反对

使用道具 举报

发表于 2013-5-19 20:36:52 | 显示全部楼层
请问这个可以显示jpeg格式的图片吗?
回复 支持 反对

使用道具 举报

发表于 2013-8-6 18:44:52 | 显示全部楼层
之前用51驱动过,那速度是慢到了极限~!这个还没试过~!
回复 支持 反对

使用道具 举报

发表于 2013-8-7 13:04:14 | 显示全部楼层
屏幕不是3.3V的么?可以直接接2560的引脚?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2013-8-9 23:42:28 | 显示全部楼层
zhangdeyue1 发表于 2013-8-7 13:04
屏幕不是3.3V的么?可以直接接2560的引脚?

可以接,但是比较麻烦,需要连很多线,注意看教程!
回复 支持 反对

使用道具 举报

 楼主| 发表于 2013-8-9 23:42:54 | 显示全部楼层
zhangdeyue1 发表于 2013-8-6 18:44
之前用51驱动过,那速度是慢到了极限~!这个还没试过~!

用51那肯定,Arduino用起来还是蛮慢的!
回复 支持 反对

使用道具 举报

 楼主| 发表于 2013-8-9 23:43:13 | 显示全部楼层
hp198969 发表于 2013-5-19 20:36
请问这个可以显示jpeg格式的图片吗?

你可以试试,貌似是可以的,我没试过!
回复 支持 反对

使用道具 举报

 楼主| 发表于 2013-8-9 23:43:38 | 显示全部楼层
Fortware 发表于 2013-4-7 15:11
佩服LZ,有空也试试

大家一起学习学习,会的说一下!
回复 支持 反对

使用道具 举报

发表于 2013-8-11 01:05:04 | 显示全部楼层
请问,使用mega2560驱动这个屏之后,还能同时跑其他程序吗?
我做智能家居用。貌似这个程序中有较长的delay,而红外接收方面不宜有较长的delay,否则会影响实时接收。
回复 支持 反对

使用道具 举报

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

本版积分规则 需要先绑定手机号

Archiver|联系我们|极客工坊

GMT+8, 2024-4-25 15:17 , Processed in 0.044974 second(s), 23 queries .

Powered by Discuz! X3.4 Licensed

Copyright © 2001-2021, Tencent Cloud.

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