Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: USBKeyboardMouse/USBKeyboard.h
- Revision:
- 0:4c75a597cb26
diff -r 000000000000 -r 4c75a597cb26 USBKeyboardMouse/USBKeyboard.h
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/USBKeyboardMouse/USBKeyboard.h Fri Jun 10 09:01:25 2011 +0000
@@ -0,0 +1,37 @@
+#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
\ No newline at end of file