led testing

Dependencies:   mbed

Committer:
elithchoo
Date:
Tue Nov 26 07:12:14 2013 +0000
Revision:
0:e168cb4bc2f0
added led2;

Who changed what in which revision?

UserRevisionLine numberNew contents of line
elithchoo 0:e168cb4bc2f0 1 #include "mbed.h"
elithchoo 0:e168cb4bc2f0 2
elithchoo 0:e168cb4bc2f0 3 DigitalOut myled(LED1);
elithchoo 0:e168cb4bc2f0 4 DigitalOut myled2(LED2);
elithchoo 0:e168cb4bc2f0 5 int main() {
elithchoo 0:e168cb4bc2f0 6 while(1) {
elithchoo 0:e168cb4bc2f0 7 myled = 1;
elithchoo 0:e168cb4bc2f0 8 myled2 = 0;
elithchoo 0:e168cb4bc2f0 9 wait(0.2);
elithchoo 0:e168cb4bc2f0 10 myled = 0;
elithchoo 0:e168cb4bc2f0 11 myled2 = 1;
elithchoo 0:e168cb4bc2f0 12 wait(0.2);
elithchoo 0:e168cb4bc2f0 13 }
elithchoo 0:e168cb4bc2f0 14 }