ok

Dependencies:   mbed

Fork of 00_01LAB_matrix8x8_fig_tetris1 by Andres Cano

Revision:
7:0a94835bc6e4
Parent:
6:2f42f0b53611
Child:
8:0ddb5ffca870
diff -r 2f42f0b53611 -r 0a94835bc6e4 main.cpp
--- a/main.cpp	Wed Sep 12 18:27:06 2018 +0000
+++ b/main.cpp	Thu Sep 13 11:54:25 2018 +0000
@@ -74,12 +74,8 @@
         matrix_tmp[i]=  (*(m2+i)>>(col-1));
     }
  } 
-void colum(){
-    for (int i=0;i<7;i++){
-        sendSPI(i-1,0);
-        sendSPI(i,temp+i);
-        }
-    }
+
+    
     
 void new_read(){
     
@@ -206,8 +202,15 @@
            for(int i=0;i<8;i++){
             act_matrix(matrix_tmp);
             printMatrix(matrix_act);
+            for (int j=0;j<8;j++){
+             matrix_act[j+3]=matrix_act[j+2];
+             matrix_act[j+2]=matrix_act[j+1];
+             matrix_act[j]=0;
+        
             //desplazar_fila();
             wait_ms(VELOCITY);
        }  
+       
+        }   
        } 
     }