Thanks for the interest in the project, guys.
I have checked the instructions I provided and compared to my working code. What is posted above should work. I'm pasting the full Pro Micro section of my working boards.txt below for reference.
My assumption is that the problem you are experiencing is that the upload to the Pro Micro doesn't update the boatloader properly. This is a problem not related to the LEDWiz implementation, but to how an Arduino board can emulate a USB joystick. My suggestion would be to first make sure that you have your Arduino recognised as a joystick and then make the code changes above and convert it into a LEDWiz. If you're not succesfull in having the Arduino recognised as a joystick, you will not succeed in turning it into a LEDWiz either.
Here is an example of how to turn the Arduino into a joystick: https://www.tinkerbo...r-with-arduino/
You might want to reset the Arduino: https://learn.sparkfun.com/tutorials/pro-micro--fio-v3-hookup-guide/troubleshooting-and-faq
Make sure to choose the correct version (5V / 3.3V) upon upload, since this affects the CPU speed.
Just FYI, I previously used the PID/VID below, which is I think is the orginal LEDWiz PID/VID. But I'm not sure anymore, my notes aren't 100% clear. That might or might not make a difference:
USB\VID_1B4F&PID_9206&REV_0100&MI_00
USB\VID_1B4F&PID_9206&MI_00
Sorry to not be able to help more. I'm no specialist either, I just started with the code that is available and figured out how to get the correct VID/PID and how to send the correct number of bytes in the HID report.
Below is the relevant sections of my Sparkfun boards.txt file:
################################################################################
################################## Pro Micro ###################################
################################################################################
promicro.name=SparkFun Pro Micro
promicro.upload.tool=avrdude
promicro.upload.protocol=avr109
promicro.upload.maximum_size=28672
promicro.upload.maximum_data_size=2560
promicro.upload.speed=57600
promicro.upload.disable_flushing=true
promicro.upload.use_1200bps_touch=true
promicro.upload.wait_for_upload_port=true
promicro.bootloader.tool=avrdude
promicro.bootloader.unlock_bits=0x3F
promicro.bootloader.lock_bits=0x2F
promicro.bootloader.low_fuses=0xFF
promicro.bootloader.high_fuses=0xD8
promicro.build.board=AVR_PROMICRO
promicro.build.core=arduino:arduino
promicro.build.variant=promicro
promicro.build.mcu=atmega32u4
promicro.build.usb_product="USB LED-Wiz Copy by Koen"
promicro.build.vid=0xFAFA
promicro.build.pid=0x00F0
promicro.build.extra_flags={build.usb_flags}
promicro.build.usb_manufacturer="ROF"
######################### Pro Micro 3.3V / 8MHz ################################
promicro.menu.cpu.8MHzatmega32U4=ATmega32U4 (3.3V, 8 MHz)
promicro.menu.cpu.8MHzatmega32U4.build.pid.0=0x9203
promicro.menu.cpu.8MHzatmega32U4.build.pid.1=0x9204
promicro.menu.cpu.8MHzatmega32U4.build.pid=0x9204
promicro.menu.cpu.8MHzatmega32U4.build.f_cpu=8000000L
promicro.menu.cpu.8MHzatmega32U4.bootloader.extended_fuses=0xFE
promicro.menu.cpu.8MHzatmega32U4.bootloader.file=caterina/Caterina-promicro8.hex
############################# Pro Micro 5V / 16MHz #############################
promicro.menu.cpu.16MHzatmega32U4=ATmega32U4 (5V, 16 MHz)
promicro.menu.cpu.16MHzatmega32U4.build.pid.0=0x00F0
promicro.menu.cpu.16MHzatmega32U4.build.pid.1=0x00F1
promicro.menu.cpu.16MHzatmega32U4.build.pid=0x00F0
promicro.menu.cpu.16MHzatmega32U4.build.f_cpu=16000000L
promicro.menu.cpu.16MHzatmega32U4.bootloader.extended_fuses=0xCB
promicro.menu.cpu.16MHzatmega32U4.bootloader.file=caterina/Caterina-promicro16.hex
Edited by kodel, 19 June 2023 - 11:20 AM.