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 LV2_Grupa1_Tim010 by
Revision 0:20d5199f659e, committed 2014-03-10
- Comitter:
- tim010
- Date:
- Mon Mar 10 09:05:41 2014 +0000
- Commit message:
- LV2 - PAI - Grupa1 - Tim010
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 10 09:05:41 2014 +0000
@@ -0,0 +1,28 @@
+#include "mbed.h"
+
+
+DigitalOut enable(dp14);
+BusOut ledice(dp23,dp24, dp25, dp26, dp27, dp5, dp6, dp28);
+BusOut ulazi (dp9, dp10, dp11, dp13);
+BusIn izlazi (dp16, dp15, dp17, dp18);
+DigitalIn taster1(dp1);
+
+int main() {
+ enable = 0;
+ ledice = 255;
+
+ while(1)
+ {
+ if (ulazi==1 && izlazi==1)ledice = 254;
+ if (ulazi ==1 && izlazi ==2) ledice = 253;
+ if (ulazi ==1 && izlazi ==4) ledice = 251;
+
+ if (ulazi == 2 && izlazi ==1) ledice =247;
+ if(ulazi ==2 && izlazi ==2) ledice = 239;
+ if(ulazi ==2 && izlazi ==4) ledice = 223;
+
+ if (ulazi == 4 && izlazi ==1) ledice = 191;
+ if(ulazi == 4 && izlazi ==2) ledice = 127;
+ }
+}
+
\ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Mon Mar 10 09:05:41 2014 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/8e73be2a2ac1 \ No newline at end of file
