Serial_Writerの受信側

Revision:
5:029c4cea1114
Parent:
4:7e5c1416d641
Child:
6:657302a3a908
--- a/main.cpp	Fri May 07 09:36:29 2021 +0000
+++ b/main.cpp	Fri May 07 09:38:59 2021 +0000
@@ -2,13 +2,14 @@
 #include "Serial_Writer.h"
 Serial_Writer TWE(D5,D4,115200);
 
-int main(void){
-    while(true){
+int main(void)
+{
+    while(true) {
         int bit_[3];//送信側と同じ型、同じ要素数の配列
         int n=TWE.receive(bit_);
-        if(n==0){
+        if(n==0) {
             for(int c:bit_)printf("%d ",c);
             printf("\n\r");
         }
     }
-}
+}
\ No newline at end of file