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.
Revision 0:7b7ad60952f6, committed 2019-10-11
- Comitter:
- jah128
- Date:
- Fri Oct 11 10:46:41 2019 +0000
- Commit message:
- Hello world test with working library
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 Fri Oct 11 10:46:41 2019 +0000
@@ -0,0 +1,34 @@
+#include "mbed.h"
+
+DigitalOut myled1(LED1);
+DigitalOut myled2(LED2);
+DigitalOut myled3(LED3);
+DigitalOut myled4(LED4);
+
+//Comment
+/* comment block */
+
+int main()
+{
+ while(1) {
+ myled1 = 1;
+ wait(0.2);
+ myled2 = 1;
+ wait(0.2);
+ myled3 = 1;
+ wait(0.2);
+ myled4 = 1;
+ wait(0.4);
+ myled4 = 0;
+ wait(0.2);
+ myled3 = 0;
+ wait(0.2);
+ myled2 = 0;
+ wait(0.2);
+ myled1 = 0;
+ wait(0.4);
+
+
+ }
+
+}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Fri Oct 11 10:46:41 2019 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/a9913a65894f \ No newline at end of file