Takeuchi Issei
/
Serial_Writer-re
Serial_Writerの受信側
Diff: main.cpp
- Revision:
- 3:f0c85f2558c4
- Parent:
- 0:7babc610f171
- Child:
- 4:7e5c1416d641
diff -r 9e785d92712d -r f0c85f2558c4 main.cpp --- a/main.cpp Fri May 07 09:27:44 2021 +0000 +++ b/main.cpp Fri May 07 09:35:03 2021 +0000 @@ -7,7 +7,8 @@ int bit_[3]; int n=TWE.receive(bit_); if(n==0){ - printf("%d %d %d\n\r",bit_[0],bit_[1],bit_[2]); + for(int c:bit_)printf("%d ",c); + printf("\n\r"); } } }