您尚未登录。

楼主 # 2025-01-05 13:20:12

stlinux
会员
注册时间: 2022-12-01
已发帖子: 10
积分: 5

t113-s3适配电阻屏,使用tslib出问题

t113-s3运行的是100ask的tina2.0 sdk,在设备树里面已经开启了rtp。在开发板进入系统之后,使用getevent获取信息为:

root@TinaLinux:/# getevent
add device 1: /dev/input/event2
  name:     "sunxi-gpadc0"
add device 2: /dev/input/event1
  name:     "audiocodec sunxi Audio Jack"
add device 3: /dev/input/event0
  name:     "sunxi-ts"

得到触摸屏对应的是/dev/input/event0,但是我使用hexdump /dev/input/event0时,报错:

root@TinaLinux:/# hexdump /dev/input/event0
hexdump: /dev/input/event0: Invalid argument

,而且使用ts_calibrate校准时,四个点位输出的坐标值基本上都是一致的,也是存在问题:

root@TinaLinux:/# ts_calibrate
xres = 800, yres = 480
Took 4 samples...
Top left : X =   28 Y = 3733
Took 4 samples...
Top right : X =   28 Y = 3734
Took 1 samples...
Bot right : X =   28 Y = 3733
Took 2 samples...
Bot left : X =   28 Y = 3733
Took 3 samples...
Center : X =   28 Y = 3735
400.000000 21.875000 0.000000
240.000000 13.125000 0.000000
Calibration constants: 26214400 1433600 0 15728640 860160 0 65536

,有大佬知道问题出在什么地方吗?

离线

页脚

工信部备案:粤ICP备20025096号 Powered by FluxBB

感谢为中文互联网持续输出优质内容的各位老铁们。 QQ: 516333132, 微信(wechat): whycan_cn (哇酷网/挖坑网/填坑网) service@whycan.cn