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: M0_EEPROM_test USBDevice mbed
Fork of USBMouseKeyboard_HelloWorld by
main.cpp@0:845782b77b0d, 2011-11-03 (annotated)
- Committer:
- samux
- Date:
- Thu Nov 03 15:18:39 2011 +0000
- Revision:
- 0:845782b77b0d
- Child:
- 1:980859c25e92
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| samux | 0:845782b77b0d | 1 | #include "mbed.h" |
| samux | 0:845782b77b0d | 2 | #include "USBMouseKeyboard.h" |
| samux | 0:845782b77b0d | 3 | |
| samux | 0:845782b77b0d | 4 | USBMouseKeyboard key_mouse; |
| samux | 0:845782b77b0d | 5 | |
| samux | 0:845782b77b0d | 6 | int main(void) { |
| samux | 0:845782b77b0d | 7 | while (1) { |
| samux | 0:845782b77b0d | 8 | key_mouse.mediaControl(KEY_VOLUME_DOWN); |
| samux | 0:845782b77b0d | 9 | key_mouse.printf("Hello World from Mbed\r\n"); |
| samux | 0:845782b77b0d | 10 | key_mouse.keyCode('s', KEY_CTRL); |
| samux | 0:845782b77b0d | 11 | key_mouse.move(20, 0); |
| samux | 0:845782b77b0d | 12 | wait(1); |
| samux | 0:845782b77b0d | 13 | } |
| samux | 0:845782b77b0d | 14 | } |
