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.
Dependencies: mbed
main.cpp@0:b5a9e0614efd, 2013-02-13 (annotated)
- Committer:
- mbed_official
- Date:
- Wed Feb 13 16:12:59 2013 +0000
- Revision:
- 0:b5a9e0614efd
- Child:
- 2:f1db1a25bf0f
DigitalOut Hello World
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| mbed_official | 0:b5a9e0614efd | 1 | #include "mbed.h" |
| mbed_official | 0:b5a9e0614efd | 2 | |
| mbed_official | 0:b5a9e0614efd | 3 | DigitalOut myled(LED1); |
| mbed_official | 0:b5a9e0614efd | 4 | |
| mbed_official | 0:b5a9e0614efd | 5 | int main() { |
| mbed_official | 0:b5a9e0614efd | 6 | while(1) { |
| mbed_official | 0:b5a9e0614efd | 7 | myled = 1; |
| mbed_official | 0:b5a9e0614efd | 8 | wait(0.2); |
| mbed_official | 0:b5a9e0614efd | 9 | myled = 0; |
| mbed_official | 0:b5a9e0614efd | 10 | wait(0.2); |
| mbed_official | 0:b5a9e0614efd | 11 | } |
| mbed_official | 0:b5a9e0614efd | 12 | } |