USB Keyboard and mouse Example. Based on USBMouse
Fork of USBKeyboardMouse by
main.cpp
- Committer:
- Wabouz
- Date:
- 2013-05-08
- Revision:
- 1:9c83250ce43b
- Parent:
- 0:86603687efec
File content as of revision 1:9c83250ce43b:
#include "mbed.h" #include "USBKeyboard.h" DigitalOut led(LED1); DigitalIn Centre(p14); DigitalIn Bas(p12); USBKeyboard keyboard; int main() { while(1) { if (Centre) { keyboard.sendKeys("q"); wait(0.2); } if (Bas) { keyboard.sendKeys("g"); wait(0.2); } } }