Example for my friend FRA...

Dependencies:   mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers main.cpp Source File

main.cpp

00001 #include "mbed.h"
00002 
00003 // For my friend FRA !!! It's work
00004 
00005 //------------------------------------
00006 // Hyperterminal configuration
00007 // 9600 bauds, 8-bit data, no parity
00008 //------------------------------------
00009 
00010 Serial pc(SERIAL_TX, SERIAL_RX);
00011  
00012 DigitalOut myled(LED1);
00013 
00014 
00015  
00016 int main() {
00017   int i = 1;
00018   pc.printf("\\n\n\nFRA... Patience and one thing at a time :)  \n\n\n");
00019   while(1) { 
00020       wait(1);
00021       pc.printf("This program runs since %d seconds.\n", i++);
00022       myled = !myled;
00023   }
00024 }
00025