触摸屏A协议
来源:互联网 发布:收集数据的网站 编辑:程序博客网 时间:2024/06/14 18:29
for(i=0;i<touch_num;i++)
{
coor_data = &point_data[3];
id = coor_data[0] & 0x0F;
input_x = (s32)(coor_data[1+i*8]) | ((s32)(coor_data[2+i*8]) << 8);
input_y = (s32)(coor_data[3+i*8]) | ((s32)(coor_data[4+i*8]) << 8);
input_w = (s32)(coor_data[5+i*8]) | ((s32)(coor_data[6+i*8]) << 8);
input_report_key(ts->input_dev, BTN_TOUCH, 1);
input_report_abs(ts->input_dev, ABS_MT_POSITION_X, input_x);
input_report_abs(ts->input_dev, ABS_MT_POSITION_Y, input_y);
input_report_abs(ts->input_dev, ABS_MT_TOUCH_MAJOR, input_w);
input_report_abs(ts->input_dev, ABS_MT_WIDTH_MAJOR, input_w);
input_mt_sync(ts->input_dev);
}
//
static const char *hello_dev_name = "touchscreen_matt";
idc文件:
文件名:touchscreen_matt.idc
./mkimage K013 boot_image -j8
fastboot flash boot boot.img
fastboot flash system system.img
fastboot continue
adb remount
adb push touchscreen_matt.idc /system/usr/idc
adb reboot
0 0
- 触摸屏A协议
- 触摸屏
- 触摸屏
- 触摸屏
- 触摸屏
- 触摸屏
- 触摸屏
- 触摸屏
- 触摸屏
- 触摸屏
- PIC单片机与触摸屏串行通信MODBUS协议
- 触摸屏:Linux输入子系统:多点触控协议
- 网络协议词典-A
- 电阻触摸屏电容触摸屏触摸屏
- 基于Modbus协议RTU模式的HITECH PWS6A00T触摸屏与PIC单片机的通信
- A接口信令协议
- HTTP协议详解--5A
- 电阻触摸屏 - 电阻触摸屏
- java.io.EOFException解决
- 配置Mavericks的LDAP client使其可以登录ubuntu上的OpenLDAP server
- DataSet基本用法
- 第5周项目3表面积
- 解决:error : 元素 <EnableEnhancedInstructionSet> 具有无效值“AdvancedVectorExtensions”。
- 触摸屏A协议
- Linux 固件子系统一之如何更新固件
- Lua元表与元方法
- LA6576 VivoParc (2013-2014 ACM-ICPC Southwestern Europe Regional Contest G题) 搜索
- java面向对象 【专题】引用传递
- 等7周 项目4 “撞错”体验
- 三个数之间最大值
- 数据库--学习笔记1
- SubVersion配置和命令运行方式