led test fork

Dependencies:   mbed

Fork of mbed_blinky by kirthiga annamalai

main.cpp

Committer:
kirthigaannamalai
Date:
2015-01-12
Revision:
3:e075f4f361c8
Parent:
2:9126c76d99ab
Child:
4:1bb0ce648fc2

File content as of revision 3:e075f4f361c8:

#include "mbed.h"

DigitalOut myled(LED1);
DigitalOut myled2(LED2);

int main() {
    while(1) {
        myled = 1;
        myled2=0;
        wait(0.5);
        myled = 0;
        myled2=1;
        wait(0.5);
    }
}