![]() |
LPCOpen Platform
v1.03
LPCOpen Platform for NXP LPC Microcontrollers
|
Example description
This example implements a HID class host mode device that enumerates a HID class device with keyboard report descriptors and displays key press characters on a terminal. If the keyboard is enumerated and working pressing "Space" key toggles the LED0, and pressing "ENTER" key toggles LED1. NOTE: many keyboards enumerate as a HUB device which is not supported by this example.
When the example is first run the terminal window will display: Keyboard Host Demo running.
When the keyboard is plugged in the terminal window will display: Device Attached. Keyboard Enumerated.
When a key is pressed on the keyboard an upper case character corresponding to that key will be displayed in the terminal window.
When the keyboard is unplugged the ternimal window will display: Device Unattached.
Special connection requirements
Build procedures:
LPC17xx/40xx example quickstart for Keil uVision4
LPC17xx/40xx example quickstart for IAR EWARM
LPC17xx/40xx example quickstart for Code Red Xpresso
Supported boards and board setup:
Embedded Artists' LPC1788 Developer's Kit
Embedded Artists' LPC4088 Developer's Kit
Submitting LPCOpen issues:
Community support for LPCOpen
Modules | |
| Main definitions | |