![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
Acts a USB HID keyboard, and socket server. Forwards characters from TCP ip socket to keyboard
Dependencies: mbed EthernetNetIf
USBKeyboardMouse/USBKeyboard.h
- Committer:
- henryeherman
- Date:
- 2011-08-02
- Revision:
- 0:beb124b81ef5
File content as of revision 0:beb124b81ef5:
#include "usbhid.h" #ifndef MBED_USBKEYBOARD_H #define MBED_USBKEYBOARD_H /* Class: USBKeyboard * Emulate a USB Keyboard HID device * * Example: * > #include "mbed.h" * > #include "USBKeyboard.h" * > * > USBKeyboard kb; * > * > int main() { * > while(1) { * > kb.sendKeys("Foo goes here!"); * > wait(2); * > } * > } */ class USBKeyboard : private usbhid { public: /* Constructor: USBKeyboard * Create a USB Keyboard using the mbed USB Device interface */ USBKeyboard(); void sendKeys(char *szString); void sendKey(char c); private: }; #endif