USBKeyboard_HelloWorld

Dependencies:   USBDevice mbed

Fork of USBKeyboard_HelloWorld by Arm Dran

main.cpp

Committer:
armdran
Date:
2015-03-27
Revision:
7:76d0d706d728
Parent:
5:03a4211d593a

File content as of revision 7:76d0d706d728:

#include "mbed.h"
#include "USBKeyboard.h"
 
//LED1: NUM_LOCK
//LED2: CAPS_LOCK
//LED3: SCROLL_LOCK
BusOut leds(LED1, LED2, LED3);
 
//USBKeyboard
USBKeyboard keyboard;
 
int main(void) {
    while (1) {
        keyboard.printf("abc\r\n");
        wait(1);
    }
}