led test fork

Dependencies:   mbed

Fork of mbed_blinky by krishna kumar

main.cpp

Committer:
krishna54504
Date:
2016-03-11
Revision:
1:967bb8e8290a
Parent:
0:87f47f8a67a8

File content as of revision 1:967bb8e8290a:

#include "mbed.h"

DigitalOut myled(LED1);

int main() 

{
 int i=0;
    while(1) {
        myled = i &1;
        wait(0.25);
        myled = 0;
        wait(0.2);
        i++;
    }
}