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: MMA8451QASD USBDeviceASD mbed
Fork of FTF2014_lab3_part2 by
main.cpp
- Committer:
- Kojto
- Date:
- 2014-04-03
- Revision:
- 0:61fed686b4a2
- Child:
- 4:7ec5c7e1e80f
File content as of revision 0:61fed686b4a2:
#include "mbed.h"
#include "USBMouseKeyboard.h"
DigitalOut led(LED1);
USBMouseKeyboard key_mouse;
int main(void) {
while (true) {
key_mouse.printf("hello world from frdm-k64f. \n");
key_mouse.move(20, 0);
wait(1);
key_mouse.keyCode(KEY_CAPS_LOCK);
led = ((key_mouse.lockStatus() & 0x2) >> 1); /* second bit is caps lock */
}
}
