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.
Revision 0:2df5fe575713, committed 2014-03-10
- Comitter:
- tim003
- Date:
- Mon Mar 10 10:58:27 2014 +0000
- Commit message:
- LV1-PAi-Grupa2-zad3
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 10:58:27 2014 +0000
@@ -0,0 +1,50 @@
+#include "mbed.h"
+
+DigitalOut myled(LED1);
+DigitalOut koloneArray [4] = {dp9, dp10, dp11, dp13};
+DigitalIn redoviArray[4] = {dp16, dp15, dp17, dp18};
+DigitalOut arrayledica [8] = {dp23, dp24, dp25, dp26, dp27, dp5, dp6, dp28};
+DigitalOut enable(dp14);
+
+void uduni(int i, int j)
+{
+ int ledicaZaIzbaciti = 3*i + 1+ j;
+ if(!ledicaZaIzbaciti > 8 || !ledicaZaIzbaciti <0)arrayledica[ledicaZaIzbaciti - 1] = 0;
+
+
+}
+
+int kolonaJedan ()
+{
+ for(int i = 0; i < 4; i++)
+ {
+
+ }
+
+int main() {
+ enable = 0;
+ for(int i = 0; i < 8; i++)
+ {
+ arrayledica[i] = 1;
+ }
+
+ while(1) {
+ for(int i = 0; i < 4; i++)
+ {
+ if(koloneArray[i] == 1)
+ KolonaJedan():
+ }
+ for(int i = 0; i < 4; i++){
+
+ if(koloneArray[i] == 1){
+
+ for(int j = 0; j < 4; j++){
+ if(redoviArray[j] == 1){
+ uduni(i,j);
+ break;
+ }
+ }
+ }
+ }
+ }
+}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Mon Mar 10 10:58:27 2014 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/8e73be2a2ac1 \ No newline at end of file