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-os-example-mbed5-blinky by
Revision 48:4c41b44e5759, committed 2017-10-04
- Comitter:
- co657_vk96
- Date:
- Wed Oct 04 21:41:05 2017 +0000
- Parent:
- 47:54bd97f836f3
- Commit message:
- to fix the can not open source file cmsis_os2.h error
Changed in this revision
diff -r 54bd97f836f3 -r 4c41b44e5759 img/uvision.png Binary file img/uvision.png has changed
diff -r 54bd97f836f3 -r 4c41b44e5759 main.cpp
--- a/main.cpp Mon Oct 02 12:30:03 2017 +0100
+++ b/main.cpp Wed Oct 04 21:41:05 2017 +0000
@@ -1,12 +1,12 @@
#include "mbed.h"
-DigitalOut led1(LED1);
+DigitalOut myled(LED1);
-// main() runs in its own thread in the OS
int main() {
- while (true) {
- led1 = !led1;
- wait(0.5);
+ while(1) {
+ myled = 1;
+ wait(0.2);
+ myled = 0;
+ wait(0.2);
}
-}
-
+}
\ No newline at end of file
diff -r 54bd97f836f3 -r 4c41b44e5759 mbed-os.lib --- a/mbed-os.lib Mon Oct 02 12:30:03 2017 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,1 +0,0 @@ -https://github.com/ARMmbed/mbed-os/#cc7556a92fb9320f4bebb190c6e1315af116c50c
diff -r 54bd97f836f3 -r 4c41b44e5759 mbed.bld --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Wed Oct 04 21:41:05 2017 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/6473597d706e \ No newline at end of file
