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:2d7ba64c2a36, 2016-01-27 (annotated)
- Committer:
- perret
- Date:
- Wed Jan 27 12:24:15 2016 +0000
- Revision:
- 0:2d7ba64c2a36
r1
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| perret | 0:2d7ba64c2a36 | 1 | #include "mbed.h" |
| perret | 0:2d7ba64c2a36 | 2 | |
| perret | 0:2d7ba64c2a36 | 3 | DigitalOut myled(LED1); |
| perret | 0:2d7ba64c2a36 | 4 | |
| perret | 0:2d7ba64c2a36 | 5 | int main() { |
| perret | 0:2d7ba64c2a36 | 6 | while(1) { |
| perret | 0:2d7ba64c2a36 | 7 | myled = 1; |
| perret | 0:2d7ba64c2a36 | 8 | wait(0.2); |
| perret | 0:2d7ba64c2a36 | 9 | myled = 0; |
| perret | 0:2d7ba64c2a36 | 10 | |
| perret | 0:2d7ba64c2a36 | 11 | wait(0.2); |
| perret | 0:2d7ba64c2a36 | 12 | } |
| perret | 0:2d7ba64c2a36 | 13 | } |