test

Dependencies:   USBDevice mbed

Files at this revision

API Documentation at this revision

Comitter:
USER10
Date:
Fri Jan 19 00:54:06 2018 +0000
Commit message:
test;

Changed in this revision

USBDevice.lib Show annotated file Show diff for this revision Revisions of this file
main.cpp Show annotated file Show diff for this revision Revisions of this file
mbed.bld Show annotated file Show diff for this revision Revisions of this file
diff -r 000000000000 -r a2d3ab09d79b USBDevice.lib
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/USBDevice.lib	Fri Jan 19 00:54:06 2018 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/USBDevice/#335f2506f422
diff -r 000000000000 -r a2d3ab09d79b main.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Fri Jan 19 00:54:06 2018 +0000
@@ -0,0 +1,17 @@
+#include "mbed.h"
+#include "USBKeyboard.h"
+ 
+//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);  //1文字送信
+            }
+    }
+}
\ No newline at end of file
diff -r 000000000000 -r a2d3ab09d79b mbed.bld
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Fri Jan 19 00:54:06 2018 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/3d0ef94e36ec
\ No newline at end of file