somme dumb test

Committer:
asmithmd1
Date:
Mon Jul 22 14:38:47 2013 +0000
Revision:
0:a180484467e1
Child:
1:ea80f6d915c1
first commit

Who changed what in which revision?

UserRevisionLine numberNew contents of line
asmithmd1 0:a180484467e1 1 #include "mbed.h"
asmithmd1 0:a180484467e1 2
asmithmd1 0:a180484467e1 3 DigitalOut myled0(LED1);
asmithmd1 0:a180484467e1 4 DigitalOut myled1(LED2);
asmithmd1 0:a180484467e1 5 DigitalOut myled2(LED3);
asmithmd1 0:a180484467e1 6 DigitalOut myled3(LED4);
asmithmd1 0:a180484467e1 7
asmithmd1 0:a180484467e1 8 int main() {
asmithmd1 0:a180484467e1 9 while(1) {
asmithmd1 0:a180484467e1 10 myled0 = 1;
asmithmd1 0:a180484467e1 11 wait(0.1);
asmithmd1 0:a180484467e1 12 myled0 = 0;
asmithmd1 0:a180484467e1 13 wait(0.4);
asmithmd1 0:a180484467e1 14
asmithmd1 0:a180484467e1 15 myled1 = 1;
asmithmd1 0:a180484467e1 16 wait(0.1);
asmithmd1 0:a180484467e1 17 myled1 = 0;
asmithmd1 0:a180484467e1 18 wait(0.4);
asmithmd1 0:a180484467e1 19
asmithmd1 0:a180484467e1 20 myled2 = 1;
asmithmd1 0:a180484467e1 21 wait(0.1);
asmithmd1 0:a180484467e1 22 myled2 = 0;
asmithmd1 0:a180484467e1 23 wait(0.4);
asmithmd1 0:a180484467e1 24
asmithmd1 0:a180484467e1 25 myled3 = 1;
asmithmd1 0:a180484467e1 26 wait(0.1);
asmithmd1 0:a180484467e1 27 myled3 = 0;
asmithmd1 0:a180484467e1 28 wait(0.4);
asmithmd1 0:a180484467e1 29 }
asmithmd1 0:a180484467e1 30 }