How connect arduino uno digital I/O to PC like a custom device?


It is possible to use the digital I/O pins to connect to PC with USB cable as device?
I want to virtualizate some mouse or keyboard device so i need to create some custom VID, PID, Manufacture and etc...


Mouse and keyboard devices need to connect to a USB Host.
There are Host shields that generally use the MAX3421E chip

to provide the USB side, and the Arduino controls it via the SPI bus.

Arduinos with Atmega32U4 can also reprogram the 32U4 to be an HID controller, but then you lose the PC interface for downloading code & debugging.

So there tradeoffs to be made.

The Teensy 3.x family has HID controller capabilities too.

Probably also the SAMD21-based boards.