SLAU533D September 2013 – April 2017
In addition to the MSC interface, the other USB interface that is enumerated by the demo is an HID interface, which is used to emulate a keyboard. When you press the S1 or S2 button, the text stored in the Button1.txt or Button2.txt file, respectively, is sent to your computer as typed keystrokes.
To see the keyboard in action, open a text editor. If using Windows, the standard Notepad application is a good choice. (To open Notepad, click the Start button, then click Run…, type "notepad" in the Open text box, and click OK.)
Make sure the window focus is on the text editor and not on another application running on the PC. Then press the S1 button on the LaunchPad development kit to send the text in Figure 5 to Notepad.
Then delete this text, and press the S2 button on the Launchpad to send the text in Figure 6 to Notepad.
The rocket can take a few seconds to type out. While the MCU is typing this out, be sure not to change the PC window focus outside of Notepad. If you change the focus, keystrokes will be sent to whatever application has focus, and strange things might happen on your PC.