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

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers USBKeyboard.cpp Source File

USBKeyboard.cpp

00001 #include "USBKeyboard.h"
00002 
00003 USBKeyboard::USBKeyboard() {
00004 //    _buttons = 0;
00005 }
00006 
00007 void USBKeyboard::sendKeys(char *szString) {
00008     keyboard(szString);
00009 }
00010 
00011 void USBKeyboard::sendKey(char c) {
00012     keyboard(c);
00013 }