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
Revision 1:980859c25e92, committed 2011-11-11
- Comitter:
- samux
- Date:
- Fri Nov 11 12:12:01 2011 +0000
- Parent:
- 0:845782b77b0d
- Child:
- 2:73a1fe1d6599
- Commit message:
Changed in this revision
| USBDevice.lib | Show annotated file Show diff for this revision Revisions of this file |
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/USBDevice.lib Thu Nov 03 15:18:39 2011 +0000 +++ b/USBDevice.lib Fri Nov 11 12:12:01 2011 +0000 @@ -1,1 +1,1 @@ -http://mbed.org/users/samux/code/USBDevice/#019ce73594da +http://mbed.org/users/samux/code/USBDevice/#8d9f9651e3c0
--- a/main.cpp Thu Nov 03 15:18:39 2011 +0000
+++ b/main.cpp Fri Nov 11 12:12:01 2011 +0000
@@ -1,7 +1,9 @@
#include "mbed.h"
#include "USBMouseKeyboard.h"
-USBMouseKeyboard key_mouse;
+//Bus of leds
+BusOut leds(LED1, LED2, LED3);
+USBMouseKeyboard key_mouse(REL_MOUSE, &leds);
int main(void) {
while (1) {
@@ -9,6 +11,7 @@
key_mouse.printf("Hello World from Mbed\r\n");
key_mouse.keyCode('s', KEY_CTRL);
key_mouse.move(20, 0);
+ key_mouse.keyCode(KEY_SCROLL_LOCK);
wait(1);
}
}
\ No newline at end of file
