Luca Mottola
/
IOTAtelier1819-STDinSTDout
Example using STDin and STDout
main.cpp
- Committer:
- lmottola
- Date:
- 2019-03-18
- Revision:
- 1:2f9d56e97f30
- Parent:
- 0:8c4e69ec8e4d
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); } }