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
Revision 0:c4a3bb148a79, committed 2015-09-10
- Comitter:
- c1728p9
- Date:
- Thu Sep 10 16:03:46 2015 +0000
- Child:
- 1:db2a55107c7e
- Commit message:
- lpc800 blinkey
Changed in this revision
| main.cpp | 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 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");
+
+ }
+}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Thu Sep 10 16:03:46 2015 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/8ed44a420e5c \ No newline at end of file
