Instantly share code, notes, and snippets.

@pysco68 /1 touch report map Secret
Last active Nov 2, 2016

Embed
What would you like to do?
Waveshare HID
[0] Report ID (0x01, definded in the descriptor)
[1] State
.......x: Tip switch
xxxxxxx.: Ignored
[2] Contact identifier
[3] Pressure (0 - 255)
[4] X coordinate LSB (0 - 800)
[5] X coordinate MSB
[6] Y coordinate LSB (0 - 480)
[7] Y coordinate MSB
[8] Scan time LSB (0 - 65535)
[9] Scan time MSB
[10] Contact count (for serial hybrid reports / fill in 1st report per frame with the number of reports to come, then 0)
Report 1: 0x01, 0x01, 0x00, 0x30, 0xff, 0x00, 0x68, 0x00, 0xf3, 0x31, 0x02
Report 2: 0x01, 0x01, 0x01, 0x22, 0x1c, 0x02, 0x23, 0x00, 0xf3, 0x31, 0x00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment