test

Dependencies:   USBDevice mbed

Fork of USBKeyboard_HelloWorld by Samuel Mokrani

main.cpp

Committer:
USER10
Date:
2017-12-12
Revision:
7:7fd55fe37383
Parent:
5:03a4211d593a

File content as of revision 7:7fd55fe37383:

#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("Hello World from Mbed\r\n");
        wait(1);
        leds = keyboard.lockStatus();
    }
}