Hello All,
I am struggling to interface 7 inch TFT touchpad (which is already built inside of display) with Arduino mega. I used Arduino HID library which is mentioned in this tutorial. https://chome.nerpa.tech/communicating-arduino-with-hid-devices-part-1/ . Touch panel manufacturer told me to use this panel with operating system but I want to use this in embedded system application.
I can able to read touch screen report in the.
-------------------------------------------------------REPORT-----------------------------------------------------------
Start
0000: 05 0D 09 04 A1 01 85 10 09 22 A1 02 09 42 15 00
0010: 25 01 75 01 95 01 81 02 95 07 81 03 75 08 09 51
0020: 26 FF 00 95 01 81 02 05 01 26 FF 0F 75 10 55 0E
0030: 65 11 09 30 35 00 46 7A 08 81 02 46 50 05 09 31
0040: 81 02 C0 05 0D 09 22 A1 02 09 42 15 00 25 01 75
0050: 01 95 01 81 02 95 07 81 03 75 08 09 51 26 FF 00
0060: 95 01 81 02 05 01 26 FF 0F 75 10 55 0E 65 11 09
0070: 30 35 00 46 7A 08 81 02 46 50 05 09 31 81 02 C0
Usage Page Digitizer(0D)
Usage Touch Scr
Collection Application
Report Id(10)
Usage Finger
Collection Logical
Usage Tip Sw
Logical Min(00)
Logical Max(01)
Report Size(01)
Report Count(01)
Input(00000010)
Report Count(07)
Input(00000011)
Report Size(08)
Usage Undef
Logical Max(FF00)
Report Count(01)
Input(00000010)
Usage Page Gen Desktop Ctrls(01)
Logical Max(FF0F)
Report Size(10)
Unit Exp(0E)
Unit(11)
Usage X
Physical Min(00)
Physical Max(7A08)
Input(00000010)
Physical Max(5005)
Usage Y
Input(00000010)
End Collection
Usage Page Digitizer(0D)
Usage Finger
Collection Logical
Usage Tip Sw
Logical Min(00)
Logical Max(01)
Report Size(01)
Report Count(01)
Input(00000010)
Report Count(07)
Input(00000011)
Report Size(08)
Usage Undef
Logical Max(FF00)
Report Count(01)
Input(00000010)
Usage Page Gen Desktop Ctrls(01)
Logical Max(FF0F)
Report Size(10)
Unit Exp(0E)
Unit(11)
Usage X
Physical Min(00)
Physical Max(7A08)
Input(00000010)
Physical Max(5005)
Usage Y
Input(00000010)
End Collection
I get above output using this code USB_Host_Shield_2.0/examples/HID/USBHID_desc at master · felis/USB_Host_Shield_2.0 · GitHub
Code extract parameters and serially print it on screen.
My requirement is to extract X and Y position of touch point and print it on screen.
Please help me in this problem statement.
I checked all resources on internet everybody used HID module with mouse or keyboard but no one used in USB touch panel. And problem get more complicated when multitouch introduced.