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:009de594c844, 2016-11-22 (annotated)
- Committer:
- balarayar
- Date:
- Tue Nov 22 10:41:16 2016 +0000
- Revision:
- 0:009de594c844
hi
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| balarayar | 0:009de594c844 | 1 | #include "mbed.h" |
| balarayar | 0:009de594c844 | 2 | |
| balarayar | 0:009de594c844 | 3 | |
| balarayar | 0:009de594c844 | 4 | DigitalOut led[8]={p7, p8, p9, p10, p28, p29, p30, p33}; |
| balarayar | 0:009de594c844 | 5 | |
| balarayar | 0:009de594c844 | 6 | int number[8]={0,0,0,0,0,0,0,0}; |
| balarayar | 0:009de594c844 | 7 | |
| balarayar | 0:009de594c844 | 8 | |
| balarayar | 0:009de594c844 | 9 | int main() { |
| balarayar | 0:009de594c844 | 10 | while (1) { |
| balarayar | 0:009de594c844 | 11 | |
| balarayar | 0:009de594c844 | 12 | |
| balarayar | 0:009de594c844 | 13 | |
| balarayar | 0:009de594c844 | 14 | for (int i=0; i<8; i++){led[i] = number[i];} |
| balarayar | 0:009de594c844 | 15 | |
| balarayar | 0:009de594c844 | 16 | |
| balarayar | 0:009de594c844 | 17 | wait(0.5); |
| balarayar | 0:009de594c844 | 18 | |
| balarayar | 0:009de594c844 | 19 | } |
| balarayar | 0:009de594c844 | 20 | } |