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:22ddfc7a1582, 2016-10-31 (annotated)
- Committer:
- cornjacket
- Date:
- Mon Oct 31 06:47:08 2016 +0000
- Revision:
- 0:22ddfc7a1582
test for off-line flow
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| cornjacket | 0:22ddfc7a1582 | 1 | #include "mbed.h" |
| cornjacket | 0:22ddfc7a1582 | 2 | |
| cornjacket | 0:22ddfc7a1582 | 3 | DigitalOut led(LED1); |
| cornjacket | 0:22ddfc7a1582 | 4 | |
| cornjacket | 0:22ddfc7a1582 | 5 | int main() |
| cornjacket | 0:22ddfc7a1582 | 6 | { |
| cornjacket | 0:22ddfc7a1582 | 7 | while (true) { |
| cornjacket | 0:22ddfc7a1582 | 8 | led = !led; // toggle led |
| cornjacket | 0:22ddfc7a1582 | 9 | wait(0.2f); |
| cornjacket | 0:22ddfc7a1582 | 10 | } |
| cornjacket | 0:22ddfc7a1582 | 11 | } |