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.
Dependencies: mbed
Diff: main.cpp
- Revision:
- 0:5befba8e183e
- Child:
- 2:6cf5f4d0d948
diff -r 000000000000 -r 5befba8e183e main.cpp
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp Mon Mar 17 18:56:15 2014 +0000
@@ -0,0 +1,20 @@
+#include "mbed.h"
+
+DigitalOut led(LED1);
+DigitalOut red(D5);
+DigitalOut blue(D8);
+DigitalOut green(D9);
+int i;
+
+int main()
+{
+ while(1) {
+ for (i=1; i<7; i++) {
+ green = i & 1;
+ blue = i & 2;
+ red = i & 4;
+ led = led ? 0 : 1;
+ wait(0.2);
+ }
+ }
+}
\ No newline at end of file