搜索
bottom↓
回复: 2

网络收音机触摸屏问题

[复制链接]

出0入0汤圆

发表于 2011-6-21 11:43:10 | 显示全部楼层 |阅读模式
使用的是240*320的屏,刚上电没校准前点击那里都是输出0,0坐标值,校准后点击屏幕,感觉输出的坐标值很没有规律,相邻的坐标点会突然大幅度跳变,而且X坐标值不是0到240,Y坐标不是0到320,而是随机的0到65535的值。请问这是正常的吗?还是驱动有问题?

SPI FLASH文件系统测试成功.
finsh>>touch up: (0, 0)
touch up: (0, 0)
touch up: (0, 0)
touch up: (0, 0)
touch up: (0, 0)
touch up: (0, 0)

finsh>>calibration()
        0, 0x00000000
finsh>>touch up: (1943, 1876)
touch up: (474, 1510)
touch up: (196, 128)
touch up: (219, 1917)
touch up: (1093, 1020)
file write succeed:
touch up: (65468, 64044)
touch up: (9, 64178)
touch up: (90, 64244)
touch up: (143, 64256)
touch up: (67, 63941)
touch up: (136, 64922)
touch up: (232, 64482)
touch up: (193, 64056)
touch up: (112, 64054)
touch up: (69, 64368)
touch up: (65303, 174)
touch up: (242, 140)
touch up: (244, 63518)
touch up: (65354, 63402)
touch up: (65291, 63358)
touch up: (16, 64495)
touch up: (68, 64519)
touch up: (264, 127)
touch up: (149, 160)
touch up: (53, 167)
touch up: (65515, 121)
touch up: (65428, 244)
touch up: (65344, 321)

阿莫论坛20周年了!感谢大家的支持与爱护!!

一只鸟敢站在脆弱的枝条上歇脚,它依仗的不是枝条不会断,而是自己有翅膀,会飞。

出0入0汤圆

发表于 2011-6-21 12:32:06 | 显示全部楼层
TP质量问题.要换触摸. 可以发回(上海)换.

出0入0汤圆

 楼主| 发表于 2011-6-21 15:20:02 | 显示全部楼层
谢谢aozima 的回答,经过测试,问题已经解决,不是TP问题,原来是驱动问题,当液晶驱动由竖屏改成横屏后,触摸屏的读X、Y坐标指令地址要相应对调:
#define TOUCH_MSR_Y  0xD0//0x90   //读X轴坐标指令 addr:1
#define TOUCH_MSR_X  0x90//0xD0   //读Y轴坐标指令 addr:3
回帖提示: 反政府言论将被立即封锁ID 在按“提交”前,请自问一下:我这样表达会给举报吗,会给自己惹麻烦吗? 另外:尽量不要使用Mark、顶等没有意义的回复。不得大量使用大字体和彩色字。【本论坛不允许直接上传手机拍摄图片,浪费大家下载带宽和论坛服务器空间,请压缩后(图片小于1兆)才上传。压缩方法可以在微信里面发给自己(不要勾选“原图),然后下载,就能得到压缩后的图片】。另外,手机版只能上传图片,要上传附件需要切换到电脑版(不需要使用电脑,手机上切换到电脑版就行,页面底部)。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

手机版|Archiver|amobbs.com 阿莫电子技术论坛 ( 粤ICP备2022115958号, 版权所有:东莞阿莫电子贸易商行 创办于2004年 (公安交互式论坛备案:44190002001997 ) )

GMT+8, 2024-5-23 10:30

© Since 2004 www.amobbs.com, 原www.ourdev.cn, 原www.ouravr.com

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