led hello

Dependencies:   mbed

Committer:
ashwar
Date:
Wed Sep 10 16:57:03 2014 +0000
Revision:
2:e1662736618c
Parent:
1:e26652da82b2
blink rate

Who changed what in which revision?

UserRevisionLine numberNew contents of line
ashwar 0:50c4ae14212f 1 #include"mbed.h"
ashwar 0:50c4ae14212f 2
ashwar 1:e26652da82b2 3 DigitalOut led1(LED1);
ashwar 1:e26652da82b2 4 DigitalOut led2(LED2);
ashwar 0:50c4ae14212f 5
ashwar 0:50c4ae14212f 6 int main() {
ashwar 0:50c4ae14212f 7 while(1) {
ashwar 1:e26652da82b2 8 led1=1;
ashwar 1:e26652da82b2 9 led2=0;
ashwar 2:e1662736618c 10 wait(0.8);
ashwar 1:e26652da82b2 11 led1=0;
ashwar 1:e26652da82b2 12 led2=1;
ashwar 2:e1662736618c 13 wait(0.8);
ashwar 0:50c4ae14212f 14 }
ashwar 0:50c4ae14212f 15 }