GBR graduation_project / Mbed 2 deprecated Led_test

Dependencies:   mbed

main.cpp

Committer:
GBR
Date:
2013-07-22
Revision:
0:06d0c3f1e8d8

File content as of revision 0:06d0c3f1e8d8:

#include "mbed.h"

DigitalOut myled(LED1);

int main() {
int i;
    while(1) {
        myled = 1;
        wait(0.2);
        myled = 0;
        wait(0.2);
        //int i;
        char *c;
        c=new char[50];
        sprintf(c, "hello%d", i);
        printf("%s\r\n",c);  
    i++;
    }
}