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.
Diff: main.cpp
- Revision:
- 0:44d37e70965a
diff -r 000000000000 -r 44d37e70965a main.cpp
--- /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;
+ }
+}