ChinaUnix.net
相关文章推荐:

ucgui touch 移植

有新的ucgui了,3.98的。支持JPEG和GIF。于是心动了,想试一下。GIF很好做。我先没有用OS 平台ADS1.2

1。GIF的显示。

先写一段显示GIF的代码如下:网上参考的,其实用不了那么多。

void ShowGif(const void * Pgif, U32 NumBytes , int x0, int y0)
{

by zajiju - 移动操作系统 - 2011-12-20 09:44:06 阅读(1413) 回复(0)

相关讨论

1.编写驱动,主要为Lcd驱动和触摸屏驱动: lcd驱动实现画点函数LCD2410_SetPixel(x,y,c)。对dm2410实验板上的lcd,左上为原点(0,0) 触摸屏驱动计算出触摸屏的坐标(x,y),对dm2410实验板上的触摸屏,左下为原点,但不一定是(0,0) 2.触摸屏校准: 测出左下最小坐标minX,minY和右上最大坐标maxX,maxY 如下填写GUItouchConf.h: #define GUI_touch_AD_LEFT minX #define GUI_touch_AD_TOP maxY #define GUI_touch_...

by peijieking - Linux文档专区 - 2009-01-08 11:50:38 阅读(1265) 回复(0)

内核: 2.6.14 chip: s3c2440 LCD: NEC3.5 1.加入触摸屏S3c2440的驱动 加入目录: (1)drivers\input\touchscreen\s3c2410_ts.c #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include /* For ts.dev.id.version */ #define S3C2410TSVERSION 0x0101 #define WAIT4INT(x) (((x) #define AUTOPST (S3C2410_ADCTSC_YM...

by luohuan123 - Linux文档专区 - 2009-04-18 07:31:09 阅读(793) 回复(0)

  仅仅是作为记录:

Andorid 的 touchscreen 事件必须要有  BTN_touch 才可以。

所以初始化的时候加上:

tablet_dev->keybit[BIT_WORD (BTN_touch)] = BIT_MASK (BTN_touch);

报事件的时候加上

input_report_key( input_dev , BTN_touch , 1);    // pressed

input_report_key( input_dev , BTN_touch , 0);    // realse

其他...

by gliethttp - 移动操作系统 - 2011-01-14 14:26:06 阅读(558) 回复(0)

移植是先从 Ben Dooks 的网站上下载了部分代码,同时在网下载了一个2410的 touch screen 驱动程序,做了简单修改完成的.这个简单的触摸屏驱动程序还不是 很完善,还需要改进. 简单触摸屏驱动移植过程如下: 一. 如果你的kernel里面没有 reg-adc.h 则需要到 Ben Dooks 的网站下载相关补丁 文件位置在 include/asm-arm/arch-s3c2410/regs-adc.h, 并在其添加如下内容 #define S3C2410_ADCTSC_XY_PST_N (0x0 #include #i...

by chenzhufly - Linux文档专区 - 2007-12-06 21:30:44 阅读(1028) 回复(0)

#!/bin/bash # Program: # Program creates three files, which named by user's input # and date command. # History: # 2012/08/17 Xia First ralease PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin export PATH echo -e "I will use 'touch' command to create 3 files." read -p "Please input your filename: " fileuser filename=${fileuser:-"filename"} date1=$(date --date='2 day...

by linuxxia - Shell - 2012-08-21 10:35:06 阅读(1640) 回复(9)

Linux-touch命 welcome u 命令名称:touch 使用权限:所有使用者 使用方式: touch [-acfm] [-r reference-file] [--file=reference-file] [-t MMDDhhmm[[CC]YY][.ss]] [-d time] [--date=time] [--time={atime,access,use,mtime,modify}] [--no-create] [--help] [--version] file1 [file2 ...] 说明: touch 指令改变档案的时间记录。 ls -l 可以显示档案的时间记录。 参数: a 改变档案的读取时间记录。 ...

by 一水思南 - Linux文档专区 - 2009-04-17 17:40:31 阅读(545) 回复(0)

touch命令很常用,但是有些参数总是记不住。最近几天在看日志的时候,发现实际上可以用touch修改系统时间戳,销毁一些证据。 用途 更新文件的访问和修改时间。 语法 touch [ -a ] [ -c ] [ -m ] [ -f ] [ -r RefFile ] [ Time | ...

by yixiaoyun - Linux文档专区 - 2007-08-28 22:08:10 阅读(455) 回复(0)

touch 改变文档或目录之最後修改时间 命令格式:touch name ( name 可为文档或目录名称.) 本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/20945/showart_134186.html

by Hand.in.Hand - Solaris文档中心 - 2006-06-29 11:25:04 阅读(908) 回复(0)

春天,莺歌燕舞的时节,touch到的是写意的生活。

by t920 - 快乐数码摄影 - 2005-04-07 13:07:18 阅读(2125) 回复(24)

问题的由来-----模拟器完成了什么 在官方发布的ucgui的源码包当中,附有很多的示例,源码与示例都打包成一个VC工程,在这个工程中我们可以编译和运行ucgui的示例,进行ucgui的图形编程,非常方便,这个工程结构下: ?? Application-------ucgui应用程序目录。 ?? Config-------------ucgui配制文件目录。 ?? GUI----------------ucgui源码文件。 ?? Simulation--------模拟器库文件、模拟器头文件目录,主要有GUISim.lib这个提供模...

by sunqianpanda - Linux文档专区 - 2007-09-30 15:41:12 阅读(2953) 回复(0)