Haris Spahić Josip Kvesić

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
tim008
Date:
Thu Mar 13 16:40:41 2014 +0000
Commit message:
LV2-PAI-Grupa6-Tim008

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 9c78d21210a1 main.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Thu Mar 13 16:40:41 2014 +0000
@@ -0,0 +1,40 @@
+#include "mbed.h"
+
+BusOut myled(dp23,dp24,dp25,dp26,dp27,dp5,dp6,dp28);
+DigitalOut enable(dp14);
+DigitalIn taster(dp1);
+DigitalIn taster2(dp2);
+
+        
+    
+
+int main() {
+    enable=0;
+    int brojac=0;
+    int b;
+      while(1) {
+        b=brojac;
+        if(taster==1 && taster2==0){
+            wait(0.2);
+            while(1){
+                if(taster==0)
+                break;
+                }
+                brojac=b;
+                
+        brojac++;        
+        }
+       else if(taster==0 && taster2==1){
+        wait(0.2);
+        while(1){
+                if(taster2==0)
+                break;
+                }
+                brojac=b;
+                brojac--;
+        }        
+        else
+        myled=brojac;
+       
+    }
+}
diff -r 000000000000 -r 9c78d21210a1 mbed.bld
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Thu Mar 13 16:40:41 2014 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/8e73be2a2ac1
\ No newline at end of file