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.
Revision 25:966cef6183e9, committed 2020-02-06
- Comitter:
- bosko001
- Date:
- Thu Feb 06 21:01:26 2020 +0000
- Parent:
- 24:7f14b70fc9ef
- Commit message:
- copy
Changed in this revision
diff -r 7f14b70fc9ef -r 966cef6183e9 main.cpp --- a/main.cpp Mon Apr 08 11:03:25 2019 +0100 +++ b/main.cpp Thu Feb 06 21:01:26 2020 +0000 @@ -1,12 +1,39 @@ #include "mbed.h" -DigitalOut myled(LED1); + + +DigitalOut RedLed(LED1); +DigitalOut GreenLed(LED2); +DigitalOut BlueLed(LED3); +int main() { -int main() { +Serial pc(USBTX, USBRX); // tx, rx + + + + + RedLed =1; + GreenLed = 1; + BlueLed = 1; + while(1) { - myled = 1; - wait(0.2); - myled = 0; - wait(0.2); + + pc.printf("Hello World!\n\r"); + + + RedLed = 0; + wait(0.5); + RedLed = 1; + wait(1); + + GreenLed=0; + wait(2); + GreenLed=1; + wait(1); + + BlueLed = 0; + wait(0.5); + BlueLed = 1; + wait(1); } }
diff -r 7f14b70fc9ef -r 966cef6183e9 mbed-os.lib --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed-os.lib Thu Feb 06 21:01:26 2020 +0000 @@ -0,0 +1,1 @@ +https://github.com/armmbed/mbed-os/#808c45062f940790e1287bd6b8420290c062775c
diff -r 7f14b70fc9ef -r 966cef6183e9 mbed.bld --- a/mbed.bld Mon Apr 08 11:03:25 2019 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,1 +0,0 @@ -https://os.mbed.com/users/mbed_official/code/mbed/builds/3a7713b1edbc \ No newline at end of file