Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
anti2810
Date:
Mon Mar 16 14:17:47 2015 +0000
Commit message:
h;

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	Mon Mar 16 14:17:47 2015 +0000
@@ -0,0 +1,18 @@
+#include "mbed.h"
+
+
+
+BusOut ledbar(P1_13,P1_12,P1_7,P1_6,P1_4,P1_3,P1_1,P1_0,LED4,LED3,LED2,LED1);
+DigitalIn btn(P1_16);
+
+void main()
+{
+    ledbar = 1;
+    while(1)
+    {
+        if(btn){
+            ledbar = ledbar << 1;
+            if(ledbar==0) ledbar = 1;
+        }
+    }
+}
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Mon Mar 16 14:17:47 2015 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/4fc01daae5a5
\ No newline at end of file