1.Due to some issues , I cannot provide you file , I copy some codes to you as below and added this in your code in CustomHID_ConfigDescriptor
//===========================================
0x95, 0x06, // REPORT_COUNT (6)
0x75, 0x08, // REPORT_SIZE (8)
0x81, 0x01, // INPUT (Constant); Reserved byte
2.modify max packet size from 2 to 8 , please refer to as below
/* Endpoint descriptor type */
0x01, /* bEndpointAddress: */
/* Endpoint Address (OUT) */
0x03, /* bmAttributes: Interrupt endpoint */
0x08, /* wMaxPacketSize: 8 Bytes max */
0x00,
0x20, /* bInterval: Polling Interval (20 ms) */
/* 41 */
|