Based on USBKeyboardMouse example. I added USB String Descriptor so mbed reports itself to host not only with VID & PID but also with name of manufacturer, product name, serial number, configuration number and interface name. These can be changed to matching Yours in USBhid.cpp file on lines 88 - 122.

Dependencies:   mbed

Committer:
llumpu
Date:
Thu Sep 08 15:01:33 2011 +0000
Revision:
0:f97b1f255167
Added USB String Descriptor

Who changed what in which revision?

UserRevisionLine numberNew contents of line
llumpu 0:f97b1f255167 1 #include "USBKeyboard.h"
llumpu 0:f97b1f255167 2
llumpu 0:f97b1f255167 3 USBKeyboard::USBKeyboard() {
llumpu 0:f97b1f255167 4 // _buttons = 0;
llumpu 0:f97b1f255167 5 }
llumpu 0:f97b1f255167 6
llumpu 0:f97b1f255167 7 void USBKeyboard::sendKeys(char *szString) {
llumpu 0:f97b1f255167 8 keyboard(szString);
llumpu 0:f97b1f255167 9 }
llumpu 0:f97b1f255167 10
llumpu 0:f97b1f255167 11 void USBKeyboard::sendKey(char c) {
llumpu 0:f97b1f255167 12 keyboard(c);
llumpu 0:f97b1f255167 13 }