Introduction - If you have any usage issues, please Google them yourself
Implement custom USB programming. D12-enabled endpoint 1 and endpoint 2, Endpoint 1 interrupt transmission, maximum packet is 16 bytes, the query interval is 10ms. Endpoint 2 is bulk transfer, maximum packet is 64 bytes. Endpoint 1 output of the first byte of the control END USB board LED, each bit represents a LED, to 1 indicates that the corresponding LED lights up. Endpoint 1 is the first byte of the input switching status is returned, each bit represents a key, too indicates that the corresponding button is pressed. The data output terminal 2 sent via the serial port, serial data received via endpoint 2 return.