Other Hardware Development
Topic: Board Name
(Read 1 time)
Location: Hyderabad , India
can't help not to think arduinaizing something !
Jun 25, 2012, 09:21 am
I'm developing a custom hardware based off the leonardo now when i plug in the device on my computer it says arduino leonardo but i thought i would be cool if it said my device name instead of arduino leonardo i changed the driver inf file to make it say custom clone but initially before installing the driver it says arduino leonardo how do i change the same?
Thanks in advance
blink. blink. blink. blink. blink.
Re: Board Name
Jun 26, 2012, 11:00 pm
The "iProduct" string sent by the board on enumeration tells the operating system gives the human-readable name. The value of that string is set near the top of USBCore.cpp in hardware/arduino/cores/arduino/. It's a Unicode string so you're looking for 'L', 'e', 'o', 'n' [...] not "Leonardo". The string used depends on the PID number of the device (also sent during enumeration) which is given in boards.txt.
Just be aware that if you'll be distributing your own custom hardware based on the Leonardo that you'll need to provide your own VID.