Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of LV6_prekidi_Z2 by
Revision 0:d523b66bf96b, committed 2014-04-01
- 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
