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 daplink-validation by
Diff: main.cpp
- Revision:
- 0:c4a3bb148a79
- Child:
- 1:db2a55107c7e
diff -r 000000000000 -r c4a3bb148a79 main.cpp
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp Thu Sep 10 16:03:46 2015 +0000
@@ -0,0 +1,34 @@
+#include "mbed.h"
+
+DigitalOut myled1(LED1);
+DigitalOut myled2(LED2);
+DigitalOut myled3(LED3);
+//Serial pc(P0_6, P0_1);
+Serial pc(USBTX, USBRX);
+
+float blink_time = 0.5;
+
+int main() {
+ pc.baud(115200);
+ myled1 = 1;
+ myled3 = 1;
+ myled2 = 1;
+ while(1) {
+ myled1 = 0;
+ wait(blink_time);
+ myled1 = 1;
+ wait(blink_time);
+
+ myled2 = 0;
+ wait(blink_time);
+ myled2 = 1;
+ wait(blink_time);
+
+ myled3 = 0;
+ wait(blink_time);
+ myled3 = 1;
+ wait(blink_time);
+ pc.printf("Some data\r\n");
+
+ }
+}
