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.
Fork of HelloWorld by
main.cpp@2:c5f3f25f3eba, 2013-03-14 (annotated)
- Committer:
- iyogee
- Date:
- Thu Mar 14 14:01:42 2013 +0000
- Revision:
- 2:c5f3f25f3eba
- Parent:
- 0:fb6bbc10ffa0
extension of HelloWorld to Walk a 1 through 4 LEDs
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| simon | 0:fb6bbc10ffa0 | 1 | #include "mbed.h" |
| simon | 0:fb6bbc10ffa0 | 2 | |
| iyogee | 2:c5f3f25f3eba | 3 | DigitalOut myled1(LED1); |
| iyogee | 2:c5f3f25f3eba | 4 | DigitalOut myled2(LED2); |
| iyogee | 2:c5f3f25f3eba | 5 | DigitalOut myled3(LED3); |
| iyogee | 2:c5f3f25f3eba | 6 | DigitalOut myled4(LED4); |
| simon | 0:fb6bbc10ffa0 | 7 | |
| simon | 0:fb6bbc10ffa0 | 8 | int main() { |
| simon | 0:fb6bbc10ffa0 | 9 | while(1) { |
| iyogee | 2:c5f3f25f3eba | 10 | myled1 = 1; |
| iyogee | 2:c5f3f25f3eba | 11 | wait(0.2); |
| iyogee | 2:c5f3f25f3eba | 12 | myled1 = 0; |
| iyogee | 2:c5f3f25f3eba | 13 | myled2 = 1; |
| simon | 0:fb6bbc10ffa0 | 14 | wait(0.2); |
| iyogee | 2:c5f3f25f3eba | 15 | myled2 = 0; |
| iyogee | 2:c5f3f25f3eba | 16 | myled3 = 1; |
| iyogee | 2:c5f3f25f3eba | 17 | wait(0.2); |
| iyogee | 2:c5f3f25f3eba | 18 | myled3 = 0; |
| iyogee | 2:c5f3f25f3eba | 19 | myled4 = 1; |
| iyogee | 2:c5f3f25f3eba | 20 | wait(0.2); |
| iyogee | 2:c5f3f25f3eba | 21 | myled4 = 0; |
| simon | 0:fb6bbc10ffa0 | 22 | wait(0.2); |
| simon | 0:fb6bbc10ffa0 | 23 | } |
| simon | 0:fb6bbc10ffa0 | 24 | } |
