
Error in Serial Printing
main.cpp
- Committer:
- adaveiitm
- Date:
- 2014-06-25
- Revision:
- 0:c9a8a9f0e3b6
File content as of revision 0:c9a8a9f0e3b6:
/*Code to print simple Hello World statement with a timestamp */ #include "mbed.h" Serial pc(USBTX,USBRX); //Include serial interface with pc Timer t ; //Function to include the timestamp int main(){ //wait(0.1); t.start(); pc.printf("Hello World-----%f\n\r",t.read()); fflush(stdout); //In order to flush out buffer t.stop(); }