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 7:3ea491238112, committed 2015-01-14
- Comitter:
- hovig
- Date:
- Wed Jan 14 02:12:46 2015 +0000
- Parent:
- 6:e8cd76f38fa9
- Commit message:
- workshop test
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
mbed.bld | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Fri May 09 19:58:03 2014 +0300 +++ b/main.cpp Wed Jan 14 02:12:46 2015 +0000 @@ -1,12 +1,24 @@ #include "mbed.h" -DigitalOut myled(LED1); +DigitalOut myled1(LED1); +DigitalOut myled2(LED2); +DigitalOut myled3(LED3); int main() { while(1) { - myled = 1; - wait(0.2); - myled = 0; - wait(0.2); + myled2 = 7; //turn myled on + printf("LED OFF! \n\r"); + wait(0.8); + myled1 = 7; + wait(0.8); + myled3 = 7; + wait(0.8); + myled1 = 0; + wait(0.8); + myled2 = 0; //turn myled off + printf("LED ON! \n\r"); + wait(0.8); + myled3 = 0; + wait(0.8); } }
--- a/mbed.bld Fri May 09 19:58:03 2014 +0300 +++ b/mbed.bld Wed Jan 14 02:12:46 2015 +0000 @@ -1,1 +1,1 @@ -http://mbed.org/users/mbed_official/code/mbed/builds/ \ No newline at end of file +http://mbed.org/users/mbed_official/code/mbed/builds/4fc01daae5a5 \ No newline at end of file