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_...
内核: 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...
仅仅是作为记录:
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
其他...
本移植是先从 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...
#!/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...
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 改变档案的读取时间记录。 ...
touch命令很常用,但是有些参数总是记不住。最近几天在看日志的时候,发现实际上可以用touch修改系统时间戳,销毁一些证据。 用途 更新文件的访问和修改时间。 语法 touch [ -a ] [ -c ] [ -m ] [ -f ] [ -r RefFile ] [ Time | ...
touch 改变文档或目录之最後修改时间 命令格式:touch name ( name 可为文档或目录名称.) 本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/20945/showart_134186.html
问题的由来-----模拟器完成了什么 在官方发布的ucgui的源码包当中,附有很多的示例,源码与示例都打包成一个VC工程,在这个工程中我们可以编译和运行ucgui的示例,进行ucgui的图形编程,非常方便,这个工程结构下: ?? Application-------ucgui应用程序目录。 ?? Config-------------ucgui配制文件目录。 ?? GUI----------------ucgui源码文件。 ?? Simulation--------模拟器库文件、模拟器头文件目录,主要有GUISim.lib这个提供模...