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:6a46b967fdeb, 2012-05-08 (annotated)
- Committer:
- rs27
- Date:
- Tue May 08 17:42:51 2012 +0000
- Revision:
- 0:6a46b967fdeb
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| rs27 | 0:6a46b967fdeb | 1 | #include "mbed.h" |
| rs27 | 0:6a46b967fdeb | 2 | |
| rs27 | 0:6a46b967fdeb | 3 | DigitalOut myled(LED1); |
| rs27 | 0:6a46b967fdeb | 4 | |
| rs27 | 0:6a46b967fdeb | 5 | int main() { |
| rs27 | 0:6a46b967fdeb | 6 | while(1) { |
| rs27 | 0:6a46b967fdeb | 7 | myled = 1; |
| rs27 | 0:6a46b967fdeb | 8 | wait(0.2); |
| rs27 | 0:6a46b967fdeb | 9 | myled = 0; |
| rs27 | 0:6a46b967fdeb | 10 | wait(0.2); |
| rs27 | 0:6a46b967fdeb | 11 | } |
| rs27 | 0:6a46b967fdeb | 12 | } |