T Umezawa / Mbed 2 deprecated light8

Dependencies:   mbed

Revision:
0:77e8722aa030
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Tue Dec 29 07:05:36 2020 +0000
@@ -0,0 +1,33 @@
+#include "mbed.h"
+Serial pc(USBTX, USBRX);
+Serial com(D1,D0);
+DigitalOut NRST(A5);
+int i = 0;
+char msg[256];
+
+int main()
+{
+    //初期設定
+    com.baud(115200);
+    pc.baud(115200);
+    NRST = 1;
+    NRST = 0;
+    wait(2);
+    NRST = 1;
+    com.scanf("%s",msg);//受信
+    pc.printf("%s\r\n",msg);
+    if (strstr(msg,"Select")!=NULL) {
+    com.printf("2\r\n");
+    wait(0.5);
+    com.printf("q\r\n");
+    wait(0.5);
+    com.printf("2\r\n");
+    wait(0.5);
+    com.printf("start\r\n");
+    }
+    while(1){
+        pc.printf("HEPTA\r\n");
+        com.printf("HEPTA\r\n");
+        wait(1.0);
+        }
+}
\ No newline at end of file