Junichi Katsu
/
mbed-os-example-blinky_serial
Lチカ+シリアル出力
Diff: main.cpp
- Revision:
- 0:c2c4a841c8f4
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Wed Jan 03 07:43:46 2018 +0000 @@ -0,0 +1,13 @@ +#include "mbed.h" + +DigitalOut led1(LED1); +Serial pc(USBTX,USBRX); +// main() runs in its own thread in the OS +int main() { + while (true) { + pc.printf("abc\r\n"); + led1 = !led1; + wait(0.5); + } +} +