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 mbed-os-example-blinky by
main.cpp@1:7edc7fe1a8ce, 2016-11-11 (annotated)
- Committer:
- maclobdell
- Date:
- Fri Nov 11 16:06:59 2016 +0000
- Revision:
- 1:7edc7fe1a8ce
- Parent:
- 0:c8e170f9079e
testing blah
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| maclobdell | 0:c8e170f9079e | 1 | #include "mbed.h" |
| maclobdell | 0:c8e170f9079e | 2 | |
| maclobdell | 1:7edc7fe1a8ce | 3 | DigitalOut led1(LED2); |
| maclobdell | 0:c8e170f9079e | 4 | |
| maclobdell | 0:c8e170f9079e | 5 | // main() runs in its own thread in the OS |
| maclobdell | 0:c8e170f9079e | 6 | // (note the calls to Thread::wait below for delays) |
| maclobdell | 0:c8e170f9079e | 7 | int main() { |
| maclobdell | 0:c8e170f9079e | 8 | while (true) { |
| maclobdell | 0:c8e170f9079e | 9 | led1 = !led1; |
| maclobdell | 0:c8e170f9079e | 10 | Thread::wait(500); |
| maclobdell | 0:c8e170f9079e | 11 | } |
| maclobdell | 0:c8e170f9079e | 12 | } |
| maclobdell | 0:c8e170f9079e | 13 |
