-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Description
ArduinoCore-avr/cores/arduino/USBCore.cpp
Lines 44 to 49 in 3055c1e
#ifndef USB_PRODUCT | |
// If no product is provided, use USB IO Board | |
#define USB_PRODUCT "USB IO Board" | |
#endif | |
const u8 STRING_PRODUCT[] PROGMEM = USB_PRODUCT; |
Hey team, I'm very novice C++ programmer, but this block of the USBcore.cpp file code seems to make it virtually impossible to make a custom USB Device name by any other means except modifying the boards.txt file or modifying the USBcore.cpp core file. The const u8 STRING_PRODUCT[] array is initialized here internally only.
If someone is making a project for an arduino game controller, midi controller, or anything that is built on top of the pluggableUSB library, their arduino USB device will always show up as the name of the board on their computer's USB device list, ex. "Arduino Micro"
It's easy enough to modify the name on the boards.txt file, however it might be a complicated extra set of steps for some users of a diy project. Teensy USB MIDI device names can be quickly modified in a config.h file in the project directory for example. I'm not sure what the best approach here is, but could this issue be addressed somehow? Or if there is a way to do this without modifying the core, boards, or platform file please let me know. Thank you!