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:c243cfc9eb72, 2018-12-23 (annotated)
- Committer:
- ajib
- Date:
- Sun Dec 23 07:52:44 2018 +0000
- Revision:
- 0:c243cfc9eb72
- Child:
- 1:0f37096eeea0
led2
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| ajib | 0:c243cfc9eb72 | 1 | #include "mbed.h" |
| ajib | 0:c243cfc9eb72 | 2 | |
| ajib | 0:c243cfc9eb72 | 3 | DigitalOut myled(LED1); |
| ajib | 0:c243cfc9eb72 | 4 | DigitalOut myled2(LED2); |
| ajib | 0:c243cfc9eb72 | 5 | |
| ajib | 0:c243cfc9eb72 | 6 | int main() { |
| ajib | 0:c243cfc9eb72 | 7 | while(1) { |
| ajib | 0:c243cfc9eb72 | 8 | myled = 1; |
| ajib | 0:c243cfc9eb72 | 9 | myled2 = 0; |
| ajib | 0:c243cfc9eb72 | 10 | wait(0.2); |
| ajib | 0:c243cfc9eb72 | 11 | myled = 0; |
| ajib | 0:c243cfc9eb72 | 12 | myled2 = 1; |
| ajib | 0:c243cfc9eb72 | 13 | wait(0.2); |
| ajib | 0:c243cfc9eb72 | 14 | } |
| ajib | 0:c243cfc9eb72 | 15 | } |