Emir Sokic / Mbed 2 deprecated US2016_LV5_Z2

Dependencies:   mbed

Fork of LV6_prekidi_Z2 by Emir Sokic

Files at this revision

API Documentation at this revision

Comitter:
esokic
Date:
Tue Apr 01 13:03:36 2014 +0000
Child:
1:4d347234e70f
Commit message:
Kod za LV6

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	Tue Apr 01 13:03:36 2014 +0000
@@ -0,0 +1,27 @@
+#include "mbed.h"
+
+BusOut prikaz1(dp26,dp25,dp24,dp23);
+BusOut prikaz2(dp28,dp6,dp5,dp27);
+
+DigitalOut enable(dp14);
+DigitalIn taster(dp1);
+
+const float T(0.2);
+int brojac1(0);
+int brojac2(0);
+
+int main()
+{
+    prikaz1=brojac1;
+    prikaz2=brojac2;
+
+    while(1) {
+        wait(T);
+        brojac1=(brojac1+1)%16;
+        if (taster) brojac2=(brojac2+1)%16;
+
+        prikaz1=brojac1;
+        prikaz2=brojac2;
+
+    }
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Tue Apr 01 13:03:36 2014 +0000
@@ -0,0 +1,1 @@
+http://world3.dev.mbed.org/users/mbed_official/code/mbed/builds/824293ae5e43
\ No newline at end of file