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.
Dependencies: mbed
main.cpp@0:dd6061cffa68, 2018-05-11 (annotated)
- Committer:
- ctasdemir
- Date:
- Fri May 11 04:56:10 2018 +0000
- Revision:
- 0:dd6061cffa68
ilk
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| ctasdemir | 0:dd6061cffa68 | 1 | #include "mbed.h" |
| ctasdemir | 0:dd6061cffa68 | 2 | |
| ctasdemir | 0:dd6061cffa68 | 3 | DigitalOut myled(LED1); |
| ctasdemir | 0:dd6061cffa68 | 4 | |
| ctasdemir | 0:dd6061cffa68 | 5 | int main() { |
| ctasdemir | 0:dd6061cffa68 | 6 | while(1) { |
| ctasdemir | 0:dd6061cffa68 | 7 | myled = 1; // LED is ON |
| ctasdemir | 0:dd6061cffa68 | 8 | wait(0.2); // 200 ms |
| ctasdemir | 0:dd6061cffa68 | 9 | myled = 0; // LED is OFF |
| ctasdemir | 0:dd6061cffa68 | 10 | wait(1.0); // 1 sec |
| ctasdemir | 0:dd6061cffa68 | 11 | } |
| ctasdemir | 0:dd6061cffa68 | 12 | } |