Akash Raj / Mbed 2 deprecated Akash

Dependencies:   mbed

Committer:
AkashRaj
Date:
Sun Feb 15 08:44:20 2015 +0000
Revision:
0:e34097f81667
program for bus out aliter;

Who changed what in which revision?

UserRevisionLine numberNew contents of line
AkashRaj 0:e34097f81667 1 #include "mbed.h"
AkashRaj 0:e34097f81667 2
AkashRaj 0:e34097f81667 3 DigitalOut myleds[]={LED1,LED2,LED3,LED4};
AkashRaj 0:e34097f81667 4
AkashRaj 0:e34097f81667 5
AkashRaj 0:e34097f81667 6 int main()
AkashRaj 0:e34097f81667 7 {
AkashRaj 0:e34097f81667 8 int i;
AkashRaj 0:e34097f81667 9
AkashRaj 0:e34097f81667 10
AkashRaj 0:e34097f81667 11 while(1)
AkashRaj 0:e34097f81667 12 {
AkashRaj 0:e34097f81667 13 for(i=0; i<4; i++)
AkashRaj 0:e34097f81667 14 {
AkashRaj 0:e34097f81667 15 myleds[i]=1;
AkashRaj 0:e34097f81667 16 wait(.2);
AkashRaj 0:e34097f81667 17 }
AkashRaj 0:e34097f81667 18
AkashRaj 0:e34097f81667 19 for(i=0; i<4; i++)
AkashRaj 0:e34097f81667 20 {
AkashRaj 0:e34097f81667 21 myleds[i]=0;
AkashRaj 0:e34097f81667 22 wait(.2);
AkashRaj 0:e34097f81667 23 }
AkashRaj 0:e34097f81667 24
AkashRaj 0:e34097f81667 25
AkashRaj 0:e34097f81667 26 }
AkashRaj 0:e34097f81667 27 }