航空研究会 / Mbed 2 deprecated serial_send_20220913

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
MasatakaMizumoto
Date:
Mon Sep 12 17:37:58 2022 +0000
Parent:
0:d6af7298fce8
Commit message:
serial send test SRAAF

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Thu Sep 17 13:29:24 2020 +0000
+++ b/main.cpp	Mon Sep 12 17:37:58 2022 +0000
@@ -4,11 +4,11 @@
 RawSerial pc2(USBTX,USBRX,115200);
 
 int main() {
-    char k[]="Hello world";
+    char k[]="SRAAF";
     
     while(1) {
         pc.printf("%s\r\n",k);
-        wait(1);
-        pc2.printf("a\r\n");
+        wait(0.5);
+        pc2.printf("%s\r\n",k);
     }
 }
\ No newline at end of file