Skip to content

Instantly share code, notes, and snippets.

@darealshinji
Created December 27, 2023 01:42
Show Gist options
  • Save darealshinji/57ec8b50dfa8faf41e170a86469358cf to your computer and use it in GitHub Desktop.
Save darealshinji/57ec8b50dfa8faf41e170a86469358cf to your computer and use it in GitHub Desktop.
Zelotes C-12 Gaming USB Mouse data
#define USB_VENDOR_ID 0x12c9
#define USB_PRODUCT_ID 0x1028
Class-Specific Request (DOWN)
Destination: Interface, Index 2
Reserved Bits: 34
Request: 0x9
Value: 0x300
Send 0x8 bytes to the device
01 88 00 00 00 00 00 76
Control Transfer (UP)
Pipe Handle: Control Pipe
01 88 00 00 00 00 00 76
Setup Packet
21 09 00 03 02 00 08 00
Recipient: Interface
Request Type: Class
Direction: Host->Device
Request: 0x9 (Unknown)
Value: 0x300
Index: 0x2
Length: 0x8
Class-Specific Request (DOWN)
Destination: Interface, Index 2
Reserved Bits: 34
Request: 0x9
Value: 0x300
Send 0x8 bytes to the device
0C 01 80 00 00 00 00 72
Control Transfer (UP)
Pipe Handle: Control Pipe
0C 01 80 00 00 00 00 72
Setup Packet
21 09 00 03 02 00 08 00
Recipient: Interface
Request Type: Class
Direction: Host->Device
Request: 0x9 (Unknown)
Value: 0x300
Index: 0x2
Length: 0x8
Bulk or Interrupt Transfer (DOWN)
Pipe Handle: 0xdf6864f0 (Endpoint Address: 0x4)
Send 0x40 bytes to the device
FF FF 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 03 80 03 00
Bulk or Interrupt Transfer (DOWN)
Pipe Handle: 0xdf6864f0 (Endpoint Address: 0x4)
Send 0x40 bytes to the device [BLUE 50%]
0F 06 0A 0A 19 19 07 01 05 03 64 64 01 C0 F0 03
01 01 64 00 04 06 08 18 18 64 14 14 04 06 08 18
18 64 14 14 0F FF 00 00 05 32 FF 05 32 FF 05 32
FF 05 32 FF 05 32 FF 05 32 FF 05 32 FF 05 32 FF
Send 0x40 bytes to the device [GREEN 100%]
0F 06 0A 0A 19 19 07 01 0A 03 64 64 01 C0 F0 03
01 01 64 00 04 06 08 18 18 64 14 14 04 06 08 18
18 64 14 14 0F FF 00 00 89 FA 0A 89 FA 0A 89 FA
0A 89 FA 0A 89 FA 0A 89 FA 0A 89 FA 0A 89 FA 0A
Send 0x40 bytes to the device [RED 100%]
0F 06 0A 0A 19 19 07 01 0A 03 64 64 01 C0 F0 03
01 01 64 00 04 06 08 18 18 64 14 14 04 06 08 18
18 64 14 14 0F FF 00 00 FF 00 00 FF 00 00 FF 00
00 FF 00 00 FF 00 00 FF 00 00 FF 00 00 FF 00 00
#define BRIGHTNESS_100 0x0a
#define BRIGHTNESS_90 0x09
#define BRIGHTNESS_80 0x08
#define BRIGHTNESS_70 0x07
#define BRIGHTNESS_60 0x06
#define BRIGHTNESS_50 0x05
#define BRIGHTNESS_40 0x04
#define BRIGHTNESS_30 0x03
#define BRIGHTNESS_20 0x02
#define BRIGHTNESS_10 0x01
uint8_t rr = 0x05;
uint8_t gg = 0x32;
uint8_t bb = 0xff;
uint8_t br = BRIGHTNESS_100;
uint8_t buf[64] = {
0x0f, 0x06, 0x0a, 0x0a, 0x19, 0x19, 0x07, 0x01,
br, 0x03, 0x64, 0x64, 0x01, 0xc0, 0xf0, 0x03,
0x01, 0x01, 0x64, 0x00, 0x04, 0x06, 0x08, 0x18,
0x18, 0x64, 0x14, 0x14, 0x04, 0x06, 0x08, 0x18,
0x18, 0x64, 0x14, 0x14, 0x0f, 0xff, 0x00, 0x00,
rr, gg, bb, rr, gg, bb, rr, gg,
bb, rr, gg, bb, rr, gg, bb, rr,
gg, bb, rr, gg, bb, rr, gg, bb
};
Class-Specific Request (DOWN)
Destination: Interface, Index 2
Reserved Bits: 34
Request: 0x9
Value: 0x300
Send 0x8 bytes to the device
02 01 00 00 00 00 00 FC
Control Transfer (UP)
Pipe Handle: Control Pipe
02 01 00 00 00 00 00 FC
Setup Packet
21 09 00 03 02 00 08 00
Recipient: Interface
Request Type: Class
Direction: Host->Device
Request: 0x9 (Unknown)
Value: 0x300
Index: 0x2
Length: 0x8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment