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@1:9ab7788cda37, 2017-06-23 (annotated)
- Committer:
- sarahmarshy
- Date:
- Fri Jun 23 16:42:01 2017 -0500
- Revision:
- 1:9ab7788cda37
- Parent:
- 0:7780c906c1c7
"Update mbed-os"
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| mab5449 | 0:7780c906c1c7 | 1 | #include "mbed.h" |
| mab5449 | 0:7780c906c1c7 | 2 | |
| mab5449 | 0:7780c906c1c7 | 3 | DigitalOut heartbeat(LED1); |
| mab5449 | 0:7780c906c1c7 | 4 | |
| mab5449 | 0:7780c906c1c7 | 5 | int main() { |
| mab5449 | 0:7780c906c1c7 | 6 | while (1) { |
| mab5449 | 0:7780c906c1c7 | 7 | heartbeat = 1; |
| mab5449 | 0:7780c906c1c7 | 8 | wait(0.5); |
| mab5449 | 0:7780c906c1c7 | 9 | heartbeat = 0; |
| mab5449 | 0:7780c906c1c7 | 10 | wait(0.5); |
| mab5449 | 0:7780c906c1c7 | 11 | } |
| mab5449 | 0:7780c906c1c7 | 12 | } |