USBSerialKeyboard Example Program

Dependencies:   USBDevice USBSerialKeyboard mbed

main.cpp

Committer:
p3p
Date:
2013-03-30
Revision:
0:d8dc1811bfda

File content as of revision 0:d8dc1811bfda:

#include "mbed.h"
#include "USBSerialKeyboard.h"

USBSerialKeyboard keyboard;

int main() {
  //Send String over USBSerial
  keyboard.printf("Example Serial Print");
  //Example Keypress
  keyboard.keypress('w', KEY_SHIFT);
  //Release all held Keys (limitation of usb keyboard?)
  keyboard.keyrelease(); 
}