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:3eaf88f7a29f, 2017-03-16 (annotated)
- Committer:
- wahihi
- Date:
- Thu Mar 16 08:35:48 2017 +0000
- Revision:
- 0:3eaf88f7a29f
test
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| wahihi | 0:3eaf88f7a29f | 1 | #include "mbed.h" |
| wahihi | 0:3eaf88f7a29f | 2 | |
| wahihi | 0:3eaf88f7a29f | 3 | DigitalOut led1(LED1); |
| wahihi | 0:3eaf88f7a29f | 4 | |
| wahihi | 0:3eaf88f7a29f | 5 | // main() runs in its own thread in the OS |
| wahihi | 0:3eaf88f7a29f | 6 | int main() { |
| wahihi | 0:3eaf88f7a29f | 7 | while (true) { |
| wahihi | 0:3eaf88f7a29f | 8 | led1 = !led1; |
| wahihi | 0:3eaf88f7a29f | 9 | wait(0.5); |
| wahihi | 0:3eaf88f7a29f | 10 | } |
| wahihi | 0:3eaf88f7a29f | 11 | } |
| wahihi | 0:3eaf88f7a29f | 12 |