Color RGB LED test

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
techand
Date:
Sat Mar 10 11:10:13 2012 +0000
Commit message:

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	Sat Mar 10 11:10:13 2012 +0000
@@ -0,0 +1,20 @@
+#include "mbed.h"
+
+//DigitalOut myled(LED1);
+DigitalOut blue(p24);
+DigitalOut green(p25);
+DigitalOut red(p26);
+
+int main() {
+    while(1) {
+        blue = 1;
+        wait(1);
+        blue = 0;
+        green  = 1;
+        wait(1);
+        green = 0;
+        red = 1;
+        wait(1);
+        red = 0;
+    }
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Sat Mar 10 11:10:13 2012 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/4c0c40fd0593