LED blink

Dependencies:   mbed

Fork of HelloWorld by Simon Ford

Committer:
chetanpatil
Date:
Tue Nov 24 08:54:07 2015 +0000
Revision:
2:b5beac907b15
Parent:
0:fb6bbc10ffa0
led blink

Who changed what in which revision?

UserRevisionLine numberNew contents of line
chetanpatil 2:b5beac907b15 1 #include"mbed.h"
chetanpatil 2:b5beac907b15 2
chetanpatil 2:b5beac907b15 3 BusOut m(p9,p10,p11,p12,p13,p14,p15,p16);
chetanpatil 2:b5beac907b15 4 DigitalOut Rs(p19);
chetanpatil 2:b5beac907b15 5 DigitalOut e(p20);
chetanpatil 2:b5beac907b15 6 int main ()
chetanpatil 2:b5beac907b15 7 {
chetanpatil 2:b5beac907b15 8 char x[10]="SHRIKEE";
chetanpatil 2:b5beac907b15 9 char Y[10]="CHETAN";
chetanpatil 2:b5beac907b15 10 int i;
chetanpatil 2:b5beac907b15 11 Rs=0;
chetanpatil 2:b5beac907b15 12 wait(0.5);
chetanpatil 2:b5beac907b15 13 m=0x38;
chetanpatil 2:b5beac907b15 14 e=1;
chetanpatil 2:b5beac907b15 15 wait(0.5);
chetanpatil 2:b5beac907b15 16 e=0;
chetanpatil 2:b5beac907b15 17 wait(0.5);
chetanpatil 2:b5beac907b15 18 m=0x06;
simon 0:fb6bbc10ffa0 19
chetanpatil 2:b5beac907b15 20 e=1;
chetanpatil 2:b5beac907b15 21 wait(0.5);
chetanpatil 2:b5beac907b15 22 e=0;
chetanpatil 2:b5beac907b15 23 wait(0.5);
chetanpatil 2:b5beac907b15 24 m=0x0e;
chetanpatil 2:b5beac907b15 25
chetanpatil 2:b5beac907b15 26 e=1;
chetanpatil 2:b5beac907b15 27 wait(0.5);
chetanpatil 2:b5beac907b15 28 e=0;
chetanpatil 2:b5beac907b15 29 wait(0.5);
chetanpatil 2:b5beac907b15 30 m=0x01;
chetanpatil 2:b5beac907b15 31
chetanpatil 2:b5beac907b15 32 e=1;
chetanpatil 2:b5beac907b15 33 wait(0.5);
chetanpatil 2:b5beac907b15 34 e=0;
chetanpatil 2:b5beac907b15 35 wait(0.5);
chetanpatil 2:b5beac907b15 36 m=0x80;
simon 0:fb6bbc10ffa0 37
chetanpatil 2:b5beac907b15 38 e=1;
chetanpatil 2:b5beac907b15 39 wait(0.5);
chetanpatil 2:b5beac907b15 40 e=0;
chetanpatil 2:b5beac907b15 41 wait(0.5);
chetanpatil 2:b5beac907b15 42 Rs=1;
chetanpatil 2:b5beac907b15 43 wait(0.5);
chetanpatil 2:b5beac907b15 44 i=0;
chetanpatil 2:b5beac907b15 45 while (x[i]!='\0')
chetanpatil 2:b5beac907b15 46 {
chetanpatil 2:b5beac907b15 47
chetanpatil 2:b5beac907b15 48 m=x[i];
chetanpatil 2:b5beac907b15 49 e=1;
chetanpatil 2:b5beac907b15 50 wait(0.5);
chetanpatil 2:b5beac907b15 51 e=0;
chetanpatil 2:b5beac907b15 52 wait(0.5);
chetanpatil 2:b5beac907b15 53 i++;
chetanpatil 2:b5beac907b15 54
chetanpatil 2:b5beac907b15 55 }
chetanpatil 2:b5beac907b15 56 m=0xc0;
chetanpatil 2:b5beac907b15 57 e=1;
chetanpatil 2:b5beac907b15 58 wait(0.5);
chetanpatil 2:b5beac907b15 59 e=0;
chetanpatil 2:b5beac907b15 60 wait(0.5);
chetanpatil 2:b5beac907b15 61
chetanpatil 2:b5beac907b15 62 while (Y[i]!='\0')
chetanpatil 2:b5beac907b15 63 {
chetanpatil 2:b5beac907b15 64
chetanpatil 2:b5beac907b15 65 m=y[i];
chetanpatil 2:b5beac907b15 66 e=1;
chetanpatil 2:b5beac907b15 67 wait(0.5);
chetanpatil 2:b5beac907b15 68 e=0;
chetanpatil 2:b5beac907b15 69 wait(0.5);
chetanpatil 2:b5beac907b15 70 i++;
chetanpatil 2:b5beac907b15 71
chetanpatil 2:b5beac907b15 72 }
chetanpatil 2:b5beac907b15 73 }