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.
main.cpp
00001 #include "mbed.h" 00002 #include "USBMouseKeyboard.h" 00003 00004 DigitalOut led(LED1); 00005 USBMouseKeyboard key_mouse; 00006 00007 int main(void) { 00008 while (1) { 00009 key_mouse.move(60, 0); 00010 key_mouse.doubleClick(); 00011 key_mouse.keyCode(KEY_CAPS_LOCK); 00012 key_mouse.printf("hello world from frdm-k64f. \n"); 00013 wait(2); 00014 key_mouse.move(-60, 0); 00015 key_mouse.doubleClick(); 00016 key_mouse.keyCode(KEY_CAPS_LOCK); 00017 key_mouse.printf("hello world from frdm-k64f. \n"); 00018 led = ((key_mouse.lockStatus() & 0x2) >> 1); /* second bit is caps lock */ 00019 wait(2); 00020 } 00021 }
Generated on Wed Jul 20 2022 09:01:09 by
1.7.2