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 "USBKeyboard.h" 00003 00004 //LED1: NUM_LOCK 00005 //LED2: CAPS_LOCK 00006 //LED3: SCROLL_LOCK 00007 BusOut leds(LED1, LED2, LED3); 00008 00009 //USBKeyboard 00010 USBKeyboard keyboard; 00011 00012 int main(void) { 00013 while (1) { 00014 keyboard.mediaControl(KEY_VOLUME_DOWN); 00015 keyboard.printf("Hello World from Mbed\r\n"); 00016 keyboard.keyCode('s', KEY_CTRL); 00017 keyboard.keyCode(KEY_CAPS_LOCK); 00018 wait(1); 00019 leds = keyboard.lockStatus(); 00020 } 00021 }
Generated on Tue Jul 12 2022 11:12:53 by
