Revision:
0:665a8221e370
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Sat May 21 07:09:58 2011 +0000
@@ -0,0 +1,27 @@
+#include "mbed.h"
+
+PwmOut led1(LED1);
+PwmOut led2(LED2);
+PwmOut led3(LED3);
+PwmOut led4(LED4);
+
+PwmOut led[]={led1,led2,led3,led4};
+
+int main() {
+    int i;
+    float p;
+    while(1) {
+        for( i=0;i<4;i++ ){
+            for( p=0;p<1;p=p+0.05 ){
+                led[i]=p;
+                wait(0.02);
+            }
+            for( p=1;p>=0;p=p-0.05 ){
+                led[i]=p;
+                wait(0.02);
+            }
+            led[i]=0;
+        }
+    }
+    
+}