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:8bd49b071be9, 2018-07-09 (annotated)
- Committer:
- bleis
- Date:
- Mon Jul 09 04:52:05 2018 +0000
- Revision:
- 0:8bd49b071be9
first commit
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| bleis | 0:8bd49b071be9 | 1 | #include "mbed.h" |
| bleis | 0:8bd49b071be9 | 2 | |
| bleis | 0:8bd49b071be9 | 3 | DigitalOut led1(LED1); |
| bleis | 0:8bd49b071be9 | 4 | |
| bleis | 0:8bd49b071be9 | 5 | // main() runs in its own thread in the OS |
| bleis | 0:8bd49b071be9 | 6 | int main() { |
| bleis | 0:8bd49b071be9 | 7 | while (true) { |
| bleis | 0:8bd49b071be9 | 8 | led1 = !led1; |
| bleis | 0:8bd49b071be9 | 9 | wait(0.5); |
| bleis | 0:8bd49b071be9 | 10 | } |
| bleis | 0:8bd49b071be9 | 11 | } |
| bleis | 0:8bd49b071be9 | 12 |