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:0438b20cd25b, 2020-03-25 (annotated)
- Committer:
- lcarter
- Date:
- Wed Mar 25 03:49:47 2020 +0000
- Revision:
- 0:0438b20cd25b
asdf
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
lcarter | 0:0438b20cd25b | 1 | #include "mbed.h" |
lcarter | 0:0438b20cd25b | 2 | |
lcarter | 0:0438b20cd25b | 3 | DigitalOut myled(PA_1); |
lcarter | 0:0438b20cd25b | 4 | |
lcarter | 0:0438b20cd25b | 5 | int main() { |
lcarter | 0:0438b20cd25b | 6 | while(1) { |
lcarter | 0:0438b20cd25b | 7 | myled = 1; // LED is ON |
lcarter | 0:0438b20cd25b | 8 | wait(0.2); // 200 ms |
lcarter | 0:0438b20cd25b | 9 | myled = 0; // LED is OFF |
lcarter | 0:0438b20cd25b | 10 | wait(1.0); // 1 sec |
lcarter | 0:0438b20cd25b | 11 | } |
lcarter | 0:0438b20cd25b | 12 | } |