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.
USBKeyboard.h
00001 /* USBKeyboard.h */ 00002 /* USB device example: Standard keyboard */ 00003 /* Copyright (c) 2011 ARM Limited. All rights reserved. */ 00004 00005 #ifndef _USB_KEYBOARD_ 00006 #define _USB_KEYBOARD_ 00007 00008 #include "GenericKeyboard.h" 00009 #include "USBHID.h" 00010 00011 /** USB device: a keyboard 00012 * 00013 * Warning: you can only instantiate one instance of a USB device: USBMouse, USBKeyboard, USBAbsMouse, USBMouseKeyboard, or USBAbsMouseKeyboard. 00014 * 00015 * Example: 00016 * @code 00017 * 00018 * #include "mbed.h" 00019 * #include "USBKeyboard.h" 00020 * 00021 * USBKeyboard key; 00022 * 00023 * int main(void) 00024 * { 00025 * while (1) 00026 * { 00027 * key.puts("Hello World\r\n"); 00028 * wait(1); 00029 * } 00030 * } 00031 * 00032 * @endcode 00033 */ 00034 class USBKeyboard: public GenericKeyboard, public USBHID 00035 { 00036 public: 00037 /** 00038 * Constructor for a keyboard 00039 */ 00040 USBKeyboard(){}; 00041 00042 virtual uint8_t * ReportDesc(); 00043 00044 00045 }; 00046 00047 #endif
Generated on Fri Jul 22 2022 22:32:37 by
1.7.2