Pages: [1]   Go Down
Author Topic: Board Name  (Read 992 times)
0 Members and 1 Guest are viewing this topic.
Hyderabad , India
Offline Offline
God Member
*****
Karma: 6
Posts: 621
can't help not to think arduinaizing something !
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Hello,

   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
Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 28
blink. blink. blink. blink. blink.
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

Pages: [1]   Go Up
Jump to: