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@1:d698bb232bb1, 2015-02-09 (annotated)
- Committer:
- ashwajit
- Date:
- Mon Feb 09 05:30:34 2015 +0000
- Revision:
- 1:d698bb232bb1
- Parent:
- 0:ac62f08e4dfc
slowdown blink rate
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
ashwajit | 0:ac62f08e4dfc | 1 | #include "mbed.h" |
ashwajit | 0:ac62f08e4dfc | 2 | |
ashwajit | 0:ac62f08e4dfc | 3 | DigitalOut myled(LED1); |
ashwajit | 0:ac62f08e4dfc | 4 | DigitalOut myled2(LED2); |
ashwajit | 0:ac62f08e4dfc | 5 | |
ashwajit | 0:ac62f08e4dfc | 6 | |
ashwajit | 0:ac62f08e4dfc | 7 | int main() { |
ashwajit | 0:ac62f08e4dfc | 8 | while(1) { |
ashwajit | 0:ac62f08e4dfc | 9 | myled = 1; |
ashwajit | 0:ac62f08e4dfc | 10 | myled2 = 0; |
ashwajit | 1:d698bb232bb1 | 11 | wait(0.5); |
ashwajit | 0:ac62f08e4dfc | 12 | myled = 0; |
ashwajit | 0:ac62f08e4dfc | 13 | myled2 = 1; |
ashwajit | 1:d698bb232bb1 | 14 | wait(0.5); |
ashwajit | 0:ac62f08e4dfc | 15 | } |
ashwajit | 0:ac62f08e4dfc | 16 | } |