USER PASS
/
USBHID_Test3
test
Revision 0:e372b32b75ff, committed 2017-12-12
- Comitter:
- USER10
- Date:
- Tue Dec 12 01:16:44 2017 +0000
- Commit message:
- test; ;
Changed in this revision
diff -r 000000000000 -r e372b32b75ff USBDevice.lib --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/USBDevice.lib Tue Dec 12 01:16:44 2017 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/USBDevice/#335f2506f422
diff -r 000000000000 -r e372b32b75ff main.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Tue Dec 12 01:16:44 2017 +0000 @@ -0,0 +1,21 @@ +#include "mbed.h" +#include "USBKeyboard.h" + +BusOut leds(LED1, LED2, LED3); + +//USBKeyboard +USBKeyboard keyboard; + +Serial pc(p13, p14);//tx1, rx1 + +int main(void) { + char ch; + while (1) { + if(pc.readable()) { // 受信確認 + ch = pc.getc(); // 1文字取り出し + keyboard.printf("%c", ch); + wait(0.1); + leds = keyboard.lockStatus(); + } + } + } \ No newline at end of file
diff -r 000000000000 -r e372b32b75ff mbed.bld --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Tue Dec 12 01:16:44 2017 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/3d0ef94e36ec \ No newline at end of file