-
-
Notifications
You must be signed in to change notification settings - Fork 37
Change board PID & VID
vike256 edited this page Jan 16, 2024
·
7 revisions
This is a guide on how to change your microcontroller's device IDs. This can be used to make the microcontoller input look like it is coming from an actual mouse instead of a microcontroller.
- Locate C:\Program Files (x86)\Arduino\hardware\arduino\avr\boards.txt
- Copy Arduino Leonardo's section and paste it to the bottom
- Replace 'leonardo' with something else
- Change all vid & pid values to the same as your mouse
- Change 'build.usb_product' to your mouse's name
If you want to disable the COM port add -DCDC_DISABLED
to the line leonardo.build.extra_flags={build.usb_flags}
To re-enable COM port: https://github.com/khanxbahria/MouseInstruct#re-enable-cdc-serial
- Locate \AppData\Local\Arduino15\packages\rp2040\hardware\rp2040\3.6.0\boards.txt
- Copy Raspberry Pi Pico W's section and paste it to the bottom
- Replace 'rpipicow' with something else
- Change all vid & pid values to the same as your mouse
- Change 'build.usb_manufacturer' and 'build.usb_product' to your mouse's manufacturer and name
- Locate \AppData\Local\Arduino15\packages\rp2040\hardware\rp2040\3.6.0\cores\rp2040\RP2040USB.cpp
- CTRL-F 'if (__USBInstallMouse || __USBInstallAbsoluteMouse)'
- Change 0x4000 to 0x0000 in the if statement