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:fe63a80288be
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp Tue Oct 19 06:55:16 2010 +0000
@@ -0,0 +1,23 @@
+#include "mbed.h"
+
+DigitalOut led1(LED1);
+DigitalOut led2(LED2);
+DigitalOut led3(LED3);
+DigitalOut led4(LED4);
+
+int main()
+{
+ int counter = 0;
+
+ while (true)
+ {
+ led1 = counter & 1;
+ led2 = counter & 2;
+ led3 = counter & 4;
+ led4 = counter & 8;
+
+ wait(0.2);
+
+ counter++;
+ }
+}