hello world with LED1

Dependencies:   mbed

Committer:
Bongjun
Date:
Fri Jun 20 07:57:04 2014 +0000
Revision:
0:219915fb6898
Hello world with LED1

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Bongjun 0:219915fb6898 1 #include "mbed.h"
Bongjun 0:219915fb6898 2
Bongjun 0:219915fb6898 3 DigitalOut myled(LED1);
Bongjun 0:219915fb6898 4 Serial pc(P0_19, P0_18);
Bongjun 0:219915fb6898 5
Bongjun 0:219915fb6898 6 int main() {
Bongjun 0:219915fb6898 7 pc.printf("First Hello World with LPC11U68 Xpresso v2!\n");
Bongjun 0:219915fb6898 8 while(1) {
Bongjun 0:219915fb6898 9 myled = 1;
Bongjun 0:219915fb6898 10 wait(5);
Bongjun 0:219915fb6898 11 myled = 0;
Bongjun 0:219915fb6898 12 wait(5);
Bongjun 0:219915fb6898 13 }
Bongjun 0:219915fb6898 14 }