Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
sunifu
Date:
Sun Sep 19 08:27:14 2010 +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	Sun Sep 19 08:27:14 2010 +0000
@@ -0,0 +1,23 @@
+#include "mbed.h"
+
+BusOut myleds(LED1, LED2, LED3, LED4);
+
+// Count UP and Flash
+int main() {
+    int i = 0 ;
+    myleds = 0 ; 
+    while( i < 16){
+        myleds = i ;
+        wait(1);
+        i++;
+    }
+    i=0;
+    while( i < 4 ){
+        myleds=0;
+        wait(0.2);
+        myleds=15;
+        wait(0.2);
+        i++;
+    }
+    myleds = 0;
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Sun Sep 19 08:27:14 2010 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/e2ac27c8e93e