Enrico Marinoni
/
L053R8-printf
Example for my friend FRA...
main.cpp
- Committer:
- emcu
- Date:
- 2016-03-15
- Revision:
- 2:3683d556c45e
- Parent:
- 1:e9d1c42a73ae
File content as of revision 2:3683d556c45e:
#include "mbed.h" // For my friend FRA !!! It's work //------------------------------------ // Hyperterminal configuration // 9600 bauds, 8-bit data, no parity //------------------------------------ Serial pc(SERIAL_TX, SERIAL_RX); DigitalOut myled(LED1); int main() { int i = 1; pc.printf("\\n\n\nFRA... Patience and one thing at a time :) \n\n\n"); while(1) { wait(1); pc.printf("This program runs since %d seconds.\n", i++); myled = !myled; } }