hello world with LED1

Dependencies:   mbed

main.cpp

Committer:
Bongjun
Date:
2014-06-20
Revision:
0:219915fb6898

File content as of revision 0:219915fb6898:

#include "mbed.h"

DigitalOut myled(LED1);
Serial pc(P0_19, P0_18);

int main() {
    pc.printf("First Hello World with LPC11U68 Xpresso v2!\n");
    while(1) {
        myled = 1;
        wait(5);
        myled = 0;
        wait(5);
    }
}