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:44d37e70965a, committed 2010-10-31
- Comitter:
- pa3jem
- Date:
- Sun Oct 31 19:35:28 2010 +0000
- Commit message:
- Revision 1
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 Sun Oct 31 19:35:28 2010 +0000
@@ -0,0 +1,32 @@
+#include "mbed.h"
+
+DigitalOut myled_1(PIN1);
+DigitalOut myled_2(PIN2);
+DigitalOut myled_3(PIN3);
+DigitalOut myled_4(PIN4);
+
+float dtime = 0.5;
+
+int main() {
+ while(1)
+ {
+ myled_1 = 1;
+ wait(dtime);
+ myled_1 = 0;
+ myled_2 = 1;
+ wait (dtime);
+ myled_2 = 0;
+ myled_3 = 1;
+ wait (dtime);
+ myled_3 = 0;
+ myled_4 = 1;
+ wait (dtime);
+ myled_4 = 0;
+ myled_3 = 1;
+ wait (dtime);
+ myled_3 = 0;
+ myled_2 = 1;
+ wait (dtime);
+ myled_2 = 0;
+ }
+}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Sun Oct 31 19:35:28 2010 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/e2ac27c8e93e