Example for my friend FRA...

Dependencies:   mbed

Committer:
emcu
Date:
Tue Mar 15 16:45:16 2016 +0000
Revision:
2:3683d556c45e
Parent:
1:e9d1c42a73ae
Example for my friend FRA...

Who changed what in which revision?

UserRevisionLine numberNew contents of line
bcostm 0:028fac66239d 1 #include "mbed.h"
bcostm 1:e9d1c42a73ae 2
emcu 2:3683d556c45e 3 // For my friend FRA !!! It's work
emcu 2:3683d556c45e 4
bcostm 1:e9d1c42a73ae 5 //------------------------------------
bcostm 1:e9d1c42a73ae 6 // Hyperterminal configuration
bcostm 1:e9d1c42a73ae 7 // 9600 bauds, 8-bit data, no parity
bcostm 1:e9d1c42a73ae 8 //------------------------------------
bcostm 1:e9d1c42a73ae 9
bcostm 0:028fac66239d 10 Serial pc(SERIAL_TX, SERIAL_RX);
bcostm 0:028fac66239d 11
bcostm 0:028fac66239d 12 DigitalOut myled(LED1);
emcu 2:3683d556c45e 13
emcu 2:3683d556c45e 14
bcostm 0:028fac66239d 15
bcostm 0:028fac66239d 16 int main() {
bcostm 0:028fac66239d 17 int i = 1;
emcu 2:3683d556c45e 18 pc.printf("\\n\n\nFRA... Patience and one thing at a time :) \n\n\n");
bcostm 0:028fac66239d 19 while(1) {
bcostm 0:028fac66239d 20 wait(1);
bcostm 0:028fac66239d 21 pc.printf("This program runs since %d seconds.\n", i++);
bcostm 0:028fac66239d 22 myled = !myled;
bcostm 0:028fac66239d 23 }
bcostm 0:028fac66239d 24 }
bcostm 0:028fac66239d 25