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:ad0bdaeb5b51, 2010-07-07 (annotated)
- Committer:
- gadgetcafe08
- Date:
- Wed Jul 07 03:45:13 2010 +0000
- Revision:
- 0:ad0bdaeb5b51
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| gadgetcafe08 | 0:ad0bdaeb5b51 | 1 | #include "mbed.h" |
| gadgetcafe08 | 0:ad0bdaeb5b51 | 2 | |
| gadgetcafe08 | 0:ad0bdaeb5b51 | 3 | DigitalOut myled(LED1); |
| gadgetcafe08 | 0:ad0bdaeb5b51 | 4 | DigitalOut myled2(LED2); |
| gadgetcafe08 | 0:ad0bdaeb5b51 | 5 | DigitalOut myled3(LED3); |
| gadgetcafe08 | 0:ad0bdaeb5b51 | 6 | DigitalOut myled4(LED4); |
| gadgetcafe08 | 0:ad0bdaeb5b51 | 7 | |
| gadgetcafe08 | 0:ad0bdaeb5b51 | 8 | |
| gadgetcafe08 | 0:ad0bdaeb5b51 | 9 | |
| gadgetcafe08 | 0:ad0bdaeb5b51 | 10 | int main() { |
| gadgetcafe08 | 0:ad0bdaeb5b51 | 11 | while(1) { |
| gadgetcafe08 | 0:ad0bdaeb5b51 | 12 | myled = 1; |
| gadgetcafe08 | 0:ad0bdaeb5b51 | 13 | myled2 = 1; |
| gadgetcafe08 | 0:ad0bdaeb5b51 | 14 | myled3 = 1; |
| gadgetcafe08 | 0:ad0bdaeb5b51 | 15 | myled4 = 1; |
| gadgetcafe08 | 0:ad0bdaeb5b51 | 16 | wait(0.2); |
| gadgetcafe08 | 0:ad0bdaeb5b51 | 17 | myled = 0; |
| gadgetcafe08 | 0:ad0bdaeb5b51 | 18 | myled2 = 0; |
| gadgetcafe08 | 0:ad0bdaeb5b51 | 19 | myled3 = 0; |
| gadgetcafe08 | 0:ad0bdaeb5b51 | 20 | myled4 = 0; |
| gadgetcafe08 | 0:ad0bdaeb5b51 | 21 | wait(0.2); |
| gadgetcafe08 | 0:ad0bdaeb5b51 | 22 | } |
| gadgetcafe08 | 0:ad0bdaeb5b51 | 23 | } |