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.
Dependencies: mbed
Diff: main.cpp
- Revision:
- 0:d03036f0954c
- Child:
- 1:809739a3f957
diff -r 000000000000 -r d03036f0954c main.cpp
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp Tue Aug 29 10:56:53 2017 +0000
@@ -0,0 +1,19 @@
+#include "mbed.h"
+
+DigitalOut led1(LED1), led2(LED2), led3(LED3), led4(LED4);
+
+
+int main() {
+ led1 = 1;
+ wait(1.0);
+ led2 = 1;
+ wait(2.0);
+ led1 = 0;
+ led4 = 1;
+ wait(2.0);
+ led2 = led4 = 0;
+ wait(3.0);
+ led1 = led2 = led3 = led4 = 1;
+ wait(2.0);
+ led1 = led2 = led3 = led4 = 0;
+}
\ No newline at end of file