Adnan Kičin Adnan Hajrić

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
tim003
Date:
Mon Mar 10 15:57:34 2014 +0000
Commit message:
LV2-PAI-Grupa3-tim003

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 e01275d6582d main.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Mon Mar 10 15:57:34 2014 +0000
@@ -0,0 +1,24 @@
+#include "mbed.h"
+ 
+BusOut myleds(dp23,dp24,dp25,dp26,dp27,dp5,dp6,dp28);
+DigitalIn taster (dp1);
+DigitalOut enable (dp14);
+ 
+int main() {
+    enable=0;
+    while(1) {
+        int i=0;
+        for(; i<255; i++) {
+            myleds = i;
+            wait(1);
+            if(taster) 
+            {
+                int j=i;
+                for(; j>0 && taster; j--) {
+                myleds = j;
+                wait(1);
+          }
+       }
+     }
+   }
+}
\ No newline at end of file
diff -r 000000000000 -r e01275d6582d mbed.bld
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Mon Mar 10 15:57:34 2014 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/8e73be2a2ac1
\ No newline at end of file