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
Fork of ROME2_P1_Fertig by
main.cpp@0:17b906055a44, 2018-02-23 (annotated)
- Committer:
- kueenste
- Date:
- Fri Feb 23 13:05:23 2018 +0000
- Revision:
- 0:17b906055a44
- Child:
- 1:b87369992345
Stefans Masterpiece of Led Blinking
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| kueenste | 0:17b906055a44 | 1 | #include "mbed.h" |
| kueenste | 0:17b906055a44 | 2 | |
| kueenste | 0:17b906055a44 | 3 | DigitalOut myled(LED1); |
| kueenste | 0:17b906055a44 | 4 | |
| kueenste | 0:17b906055a44 | 5 | int main() { |
| kueenste | 0:17b906055a44 | 6 | while(1) { |
| kueenste | 0:17b906055a44 | 7 | myled = 1; // LED is ON |
| kueenste | 0:17b906055a44 | 8 | wait(0.2); // 200 ms |
| kueenste | 0:17b906055a44 | 9 | myled = 0; // LED is OFF |
| kueenste | 0:17b906055a44 | 10 | wait(1.0); // 1 sec |
| kueenste | 0:17b906055a44 | 11 | } |
| kueenste | 0:17b906055a44 | 12 | } |
