Takeuchi Issei
/
Serial_Writer-re
Serial_Writerの受信側
main.cpp
- Committer:
- e2011220
- Date:
- 2021-05-07
- Revision:
- 0:7babc610f171
- Child:
- 3:f0c85f2558c4
File content as of revision 0:7babc610f171:
#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]); } } }