Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
main.cpp@0:e34097f81667, 2015-02-15 (annotated)
- 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?
User | Revision | Line number | New 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 | } |