change the name of arduino pro micro shown in the "Devices and printers"

I have tried like show in https://forum.arduino.cc/index.php?topic=690611.0 but it don't have any goal. May be i don't understand correctly

I have changed name as code shows

micro.name=PannelloDestro

micro.vid.0=0x2341 micro.pid.0=0x0037 micro.vid.1=0x2341 micro.pid.1=0x8037 micro.vid.2=0x2A03 micro.pid.2=0x0037 micro.vid.3=0x2A03 micro.pid.3=0x8037 micro.vid.4=0x2341 micro.pid.4=0x0237 micro.vid.5=0x2341 micro.pid.5=0x8237

micro.upload.tool=avrdude micro.upload.protocol=avr109 micro.upload.maximum_size=28672 micro.upload.maximum_data_size=2560 micro.upload.speed=57600 micro.upload.disable_flushing=true micro.upload.use_1200bps_touch=true micro.upload.wait_for_upload_port=true

micro.bootloader.tool=avrdude micro.bootloader.low_fuses=0xff micro.bootloader.high_fuses=0xd8 micro.bootloader.extended_fuses=0xcb micro.bootloader.file=caterina/Caterina-Micro.hex micro.bootloader.unlock_bits=0x3F micro.bootloader.lock_bits=0x2F

micro.build.mcu=atmega32u4 micro.build.f_cpu=16000000L micro.build.vid=0x2341 micro.build.pid=0x8037 #micro.build.usb_product="Arduino Micro" micro.build.usb_product="Pannello dx" micro.build.board=AVR_MICRO micro.build.core=arduino micro.build.variant=micro micro.build.extra_flags={build.usb_flags}

and then o send again my sketch to configure Arduino as new game peripheric, but in resources is still Arduino Micro.

where i fault?

thank you

I don’t know if I remember correctly but you may have to remove device from your device manager and have your micro rediscovered when you plug it in a USB port so hopefully it will change.

No nothing has been changed, but my question is : it's enough cange the board.txt in the conf directory of arduino API and then compile and send my sketch or in unknown way for me send wich is in board.txt to the processor?

Or i have to do more?

Yes it should be enough. Turn on verbose compilation in preference you will see lines like these:

"C:\a185\hardware\tools\avr/bin/avr-gcc" -c -g -Os -w -std=gnu11 -ffunction-sections -fdata-sections -MMD -flto -fno-fat-lto-objects -mmcu=atmega32u4 -DF_CPU=16000000L -DARDUINO=10805 -DARDUINO_AVR_MICRO -DARDUINO_ARCH_AVR -DUSB_VID=0x2341 -DUSB_PID=0x8037 '-DUSB_MANUFACTURER="Unknown"' '-DUSB_PRODUCT="Arduino Micro"' "-IC:\a185\hardware\arduino\avr\cores\arduino" "-IC:\a185\hardware\arduino\avr\variants\micro" "C:\a185\hardware\arduino\avr\cores\arduino\wiring_digital.c" -o "C:\Users\x\AppData\Local\Temp\arduino_build_370459\core\wiring_digital.c.o"

In there you will find a -DUSB_PRODUCT="Arduino Micro" option. This value is taken from the boards.txt file. I tested it. If your compilation message doesn't say your product name, maybe you don't have arduino micro, you have genuino micro or else. The script under Arduino micro has a few places for 0x8x37 which resulted from a fight between Arduino LLC and Arduino SRL an age ago. Make sure you look up your device manager for the EXACT product ID and change the corresponding info in boards.txt

If all fails and you're frustrated, go to USBCore.cpp, which is located here: Arduino\hardware\arduino\avr\cores\arduino\USBCore.cpp

Change the following lines at the beginning:

#ifndef USB_PRODUCT
// If no product is provided, use USB IO Board
#define USB_PRODUCT     "USB IO Board"
#endif

into:

#define USB_PRODUCT     "Your board name"