电阻屏的福音

来源:互联网 发布:郭靖的武功 知乎 编辑:程序博客网 时间:2024/04/30 09:49

电阻屏一个为4线,现在有将其转换成USB接口的软硬件了。这样就可以把各个模块隔离开来。

硬件模块如下:
这里写图片描述

查得VID和PID:
这里写图片描述

对应内核的驱动配置项为TOUCHSCREEN_USB_EGALAX:
drivers/input/touchscreen/Kconfig
这里写图片描述

配置方法:

配置分为三个步骤
1. 首先配置上EXPERT

General setup  --->    [*] Configure standard kernel features (expert users)  --->

选中「Configure standard kernel features (expert users)」。
2. 配置触摸屏驱动

Device Drivers  ---> Input device support  --->     [*]   Touchscreens  --->         <*>   USB Touchscreen Driver          [*]   eGalax, eTurboTouch CT-410/510/700 device support (NEW)

选中「eGalax, eTurboTouch CT-410/510/700 device support (NEW)」。
3. 枚举信息

[16760.102442] usb 1-1: USB disconnect, device number 23[17547.024510] usb 1-1: new low-speed USB device number 24 using xhci_hcd[17547.159379] usb 1-1: New USB device found, idVendor=0eef, idProduct=0001[17547.159385] usb 1-1: New USB device strings: Mfr=1, Product=5, SerialNumber=3[17547.159388] usb 1-1: Manufacturer: eGalax Inc.[17547.159571] usb 1-1: ep 0x81 - rounding interval to 32 microframes, ep desc says 40 microframes[17547.161636] input: eGalax Inc. as /devices/pci0000:00/0000:00:14.0/usb1/1-1/1-1:1.0/input/input24
0 0
原创粉丝点击