aaa

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
12f2039e
Date:
Tue Jun 03 09:14:33 2014 +0000
Commit message:
12f2039e

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
diff -r 000000000000 -r 77cdf32df2bb main.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Tue Jun 03 09:14:33 2014 +0000
@@ -0,0 +1,58 @@
+
+
+ #include "mbed.h"
+ 
+BusOut leds(P1_13,P1_14,P1_22,P0_17,P0_18,P0_19,P1_15,P0_1);
+ 
+int main() {
+    while(1) {
+      leds = 0x01;
+      wait(0.2);
+      
+      leds = 0x00;
+      wait(0.2);
+      
+      leds = 0xff;
+      wait(0.2);
+      
+      leds = 0x01;
+      wait(0.2);
+      
+      leds = 0x02;
+      wait(0.2);
+      
+      leds = 0x04;
+      wait(0.2);
+      
+      leds = 0x08;
+      wait(0.2);
+      
+      leds = 0x10;
+      wait(0.2);
+      
+      leds = 0x20;
+      wait(0.2);
+      
+      leds = 0x40;
+      wait(0.2);
+      
+      leds = 0x80;
+      wait(0.2);
+      
+      leds = 0xff;
+      wait(0.1);
+      
+      leds = 0x00;
+      wait(0.1);
+      
+      leds = 0xff;
+      wait(0.1);
+      
+      leds = 0x00;
+      wait(0.1);
+      
+      leds = 0xff;
+      wait(0.5);
+    }
+}
+ 
\ No newline at end of file
diff -r 000000000000 -r 77cdf32df2bb mbed.bld
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Tue Jun 03 09:14:33 2014 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/0b3ab51c8877
\ No newline at end of file