Luke is a pseudonym
/
SDVXcontroller
SDVX controller project
main.cpp
- Committer:
- lukeoftheaura
- Date:
- 2018-01-12
- Revision:
- 3:b88fff5420e2
- Parent:
- 2:19001d314c68
- Child:
- 4:6192f1728e75
File content as of revision 3:b88fff5420e2:
#include "mbed.h" #include "USBKeyboard.h" #include "USBMouse.h" #include "USBHID.h" // DigitalIn BT1(PTA2); Serial PC(USBTX,USBRX); USBKeyboard key; DigitalOut LED(LED1); DigitalIn button1(PTB8); bool bt1state = false; int main() { for(;;) { LED = button1; if(button1 == 0) { key.keyPress('c'); } wait(0.1); key.keyPress('c'); // else if(button1 == 1) { // key.keyPress('c'); // } } }