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:088623ea241a, 2013-02-07 (annotated)
- Committer:
- wim
- Date:
- Thu Feb 07 19:15:35 2013 +0000
- Revision:
- 0:088623ea241a
GoodbyeWorld to stop the blinking LED
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| wim | 0:088623ea241a | 1 | #include "mbed.h" |
| wim | 0:088623ea241a | 2 | |
| wim | 0:088623ea241a | 3 | DigitalOut myled(LED1); |
| wim | 0:088623ea241a | 4 | |
| wim | 0:088623ea241a | 5 | int main() { |
| wim | 0:088623ea241a | 6 | myled = 1; |
| wim | 0:088623ea241a | 7 | wait(0.5); |
| wim | 0:088623ea241a | 8 | myled = 0; |
| wim | 0:088623ea241a | 9 | |
| wim | 0:088623ea241a | 10 | while(1) { |
| wim | 0:088623ea241a | 11 | wait(1.0); |
| wim | 0:088623ea241a | 12 | } |
| wim | 0:088623ea241a | 13 | } |