aa bb / Mbed 2 deprecated STM32_Blink_LED

Dependencies:   mbed-os mbed

Files at this revision

API Documentation at this revision

Comitter:
symo0921
Date:
Tue Oct 02 09:37:14 2018 +0000
Child:
1:3dc76cd598b0
Commit message:
11111111

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
mbed-os.lib 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
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Tue Oct 02 09:37:14 2018 +0000
@@ -0,0 +1,22 @@
+#include "mbed.h"
+ 
+DigitalOut led1(LED1);
+DigitalOut led2(LED2);
+Thread thread;
+ 
+void led2_thread() {
+    while (true) {
+        led2 = !led2;
+        wait(1);
+    }
+}
+ 
+int main() {
+    thread.start(led2_thread);
+    
+    while (true) {
+        led1 = !led1;
+        wait(0.5);
+    }
+}
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed-os.lib	Tue Oct 02 09:37:14 2018 +0000
@@ -0,0 +1,1 @@
+https://os.mbed.com/users/bLandais/code/mbed-os/#4c0e0edd4545
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Tue Oct 02 09:37:14 2018 +0000
@@ -0,0 +1,1 @@
+https://os.mbed.com/users/mbed_official/code/mbed/builds/e95d10626187
\ No newline at end of file