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:025eafdfcf59, 2013-06-14 (annotated)
- Committer:
- mbed_official
- Date:
- Fri Jun 14 17:05:20 2013 +0000
- Revision:
- 0:025eafdfcf59
Hello World program using the mbed library sources
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| mbed_official | 0:025eafdfcf59 | 1 | #include "mbed.h" |
| mbed_official | 0:025eafdfcf59 | 2 | |
| mbed_official | 0:025eafdfcf59 | 3 | DigitalOut myled(LED1); |
| mbed_official | 0:025eafdfcf59 | 4 | |
| mbed_official | 0:025eafdfcf59 | 5 | int main() { |
| mbed_official | 0:025eafdfcf59 | 6 | while(1) { |
| mbed_official | 0:025eafdfcf59 | 7 | myled = 1; |
| mbed_official | 0:025eafdfcf59 | 8 | wait(0.2); |
| mbed_official | 0:025eafdfcf59 | 9 | myled = 0; |
| mbed_official | 0:025eafdfcf59 | 10 | wait(0.2); |
| mbed_official | 0:025eafdfcf59 | 11 | } |
| mbed_official | 0:025eafdfcf59 | 12 | } |
