免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1862 | 回复: 2
打印 上一主题 下一主题

请教,液晶屏的全屏输出 :) [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2003-10-28 13:44 |只看该作者 |倒序浏览
请教谁有以下相关的开发经验。

任务:用c在嵌入式linux下,把显示屏全屏输出,通过irlpt口红外线传输给其他设备来打印出来。类似于手机屏幕的一块液晶屏,功能有点象键盘上的Print Screen.

请问各位前辈有没有相关的思路,指点小妹一二吧:)

我主要不太明白屏幕数据传给irda口的具体流程啊。

论坛徽章:
0
2 [报告]
发表于 2003-10-29 22:17 |只看该作者

请教,液晶屏的全屏输出 :)

It's not difficult, not at all. SO EASY. Pls tell me more and then, I can help u.

论坛徽章:
0
3 [报告]
发表于 2003-10-30 08:56 |只看该作者

请教,液晶屏的全屏输出 :)

thank you very much!!   

I have written several code as follows(not have tested yet.  There still exist some interface arguments to comfirmed):

  1. //**************************
  2. //   convert all the Lcd data to a buffer
  3. //
  4. //
  5. //*************************/
  6. int readLCD(unsigned char buf_data[length], unsigned char LCDdata[brx][bry])
  7. {
  8.   int temp;
  9.   int x, y;
  10.   int i;

  11.   i = 0;
  12.   temp = 0;
  13.   memset(buf_data, 0x0, length);

  14.   for (y=0; y<bry; y++)
  15.     for (x=0; x<brx; x++)
  16.       {
  17.         i++;
  18.         if(i >; 8)
  19.           temp++;
  20.         buf_data[temp] |= LCDdata[x][y];
  21.         buf_data[temp] = ((buf_data[temp]<<1)&0xff);
  22.       }
  23. }
复制代码


is it apply to the normal structure to deal with such problem?

P.S.  the data stored in the LCD are unsigned char

1 = 0x01
0 = 0x00
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP