Skip to content

Instantly share code, notes, and snippets.

@pysco68
Last active November 2, 2016 12:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pysco68/e6d1fb0cc68be39aec794967505e0982 to your computer and use it in GitHub Desktop.
Save pysco68/e6d1fb0cc68be39aec794967505e0982 to your computer and use it in GitHub Desktop.
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