Luca Mottola
/
AthensFall19-STDinSTDout
STDin and STDout example
main.cpp
- Committer:
- lmottola
- Date:
- 2019-03-18
- Revision:
- 1:2f9d56e97f30
- Parent:
- 0:8c4e69ec8e4d
- Child:
- 2:677b83cb846c
File content as of revision 1:2f9d56e97f30:
#include "mbed.h" Serial pc(USBTX, USBRX); int main() { char buffer[128]; pc.printf("Starting..\n"); while (1) { pc.gets(buffer, 4); pc.printf("I got '%s'\n", buffer); } }