LED hello world

Dependencies:   mbed

main.cpp

Committer:
kirthigaannamalai
Date:
2015-01-12
Revision:
3:e075f4f361c8
Parent:
2:9126c76d99ab

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);
    }
}