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.
Dependencies: mbed TSI MMA8451Q USBDevice
Fork of USBKeyboard_HelloWorld by
main.cpp@0:c1db4aaad050, 2011-11-03 (annotated)
- Committer:
- samux
- Date:
- Thu Nov 03 12:11:29 2011 +0000
- Revision:
- 0:c1db4aaad050
- Child:
- 1:291a88a2c151
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| samux | 0:c1db4aaad050 | 1 | #include "mbed.h" |
| samux | 0:c1db4aaad050 | 2 | #include "USBKeyboard.h" |
| samux | 0:c1db4aaad050 | 3 | |
| samux | 0:c1db4aaad050 | 4 | USBKeyboard keyboard; |
| samux | 0:c1db4aaad050 | 5 | |
| samux | 0:c1db4aaad050 | 6 | int main(void) { |
| samux | 0:c1db4aaad050 | 7 | while (1) { |
| samux | 0:c1db4aaad050 | 8 | keyboard.mediaControl(KEY_VOLUME_DOWN); |
| samux | 0:c1db4aaad050 | 9 | keyboard.printf("Hello World from Mbed\r\n"); |
| samux | 0:c1db4aaad050 | 10 | wait(1); |
| samux | 0:c1db4aaad050 | 11 | } |
| samux | 0:c1db4aaad050 | 12 | } |
