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.
Fork of mbed_blinky by
Revision 19:6fd94dbef209, committed 2017-11-07
- Comitter:
- rajko
- Date:
- Tue Nov 07 10:02:45 2017 +0000
- Parent:
- 18:1fe1cb83472f
- Commit message:
- prvi proj
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Thu Oct 12 04:41:05 2017 +0000 +++ b/main.cpp Tue Nov 07 10:02:45 2017 +0000 @@ -1,12 +1,18 @@ #include "mbed.h" -DigitalOut myled(LED1); +DigitalOut myled1(LED1); +DigitalOut myled2(LED2); int main() { while(1) { - myled = 1; + myled1 = 1; + wait(0.2); + myled1 = 0; wait(0.2); - myled = 0; - wait(0.2); + + myled2 = 1; + wait(1); + myled2 = 0; + wait(1); } }