SSLM1 / Mbed 2 deprecated 1_Transiver_test

Dependencies:   mbed

Revision:
0:114501d9843c
diff -r 000000000000 -r 114501d9843c main.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Wed Jul 01 12:58:24 2020 +0000
@@ -0,0 +1,24 @@
+/* TWE-Liteにmbedから適当な文字を送信するプログラム */
+
+#include "mbed.h"
+
+Serial pc(USBTX, USBRX); //Serial set up
+Serial twe(p13, p14);
+
+int main()
+{
+    int i = 0;
+    
+    pc.printf("start!");
+    
+    pc.baud(115200);
+    twe.baud(115200);
+    
+    while(1)
+    {    
+        twe.printf("%d\r\n", i);
+        wait(1);
+        
+        i++;
+    }
+}
\ No newline at end of file