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:3bd7af8a6fe5, 2015-06-02 (annotated)
- Committer:
- biaks
- Date:
- Tue Jun 02 15:52:52 2015 +0000
- Revision:
- 0:3bd7af8a6fe5
one
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| biaks | 0:3bd7af8a6fe5 | 1 | #include "mbed.h" |
| biaks | 0:3bd7af8a6fe5 | 2 | |
| biaks | 0:3bd7af8a6fe5 | 3 | DigitalOut myled(LED1); |
| biaks | 0:3bd7af8a6fe5 | 4 | |
| biaks | 0:3bd7af8a6fe5 | 5 | int main() { |
| biaks | 0:3bd7af8a6fe5 | 6 | while(1) { |
| biaks | 0:3bd7af8a6fe5 | 7 | myled = 1; // LED is ON |
| biaks | 0:3bd7af8a6fe5 | 8 | wait(0.2); // 200 ms |
| biaks | 0:3bd7af8a6fe5 | 9 | myled = 0; // LED is OFF |
| biaks | 0:3bd7af8a6fe5 | 10 | wait(1.0); // 1 sec |
| biaks | 0:3bd7af8a6fe5 | 11 | } |
| biaks | 0:3bd7af8a6fe5 | 12 | } |