![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
test
Diff: main.cpp
- Revision:
- 0:a2d3ab09d79b
--- /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