Takeuchi Issei
/
Serial_Writer-re
Serial_Writerの受信側
Diff: main.cpp
- Revision:
- 0:7babc610f171
- Child:
- 3:f0c85f2558c4
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Fri May 07 08:56:25 2021 +0000 @@ -0,0 +1,13 @@ +#include "mbed.h" +#include "Serial_Writer.h" +Serial_Writer TWE(D5,D4,115200); + +int main(void){ + while(true){ + int bit_[3]; + int n=TWE.receive(bit_); + if(n==0){ + printf("%d %d %d\n\r",bit_[0],bit_[1],bit_[2]); + } + } +}