ok

Dependencies:   mbed

Fork of 00_01LAB_matrix8x8_fig_tetris1 by Andres Cano

Revision:
10:ae8cf84c82ca
Parent:
9:f6536806c250
Child:
11:edb5ee477f00
--- a/main.cpp	Thu Sep 13 20:05:40 2018 +0000
+++ b/main.cpp	Thu Sep 13 20:53:12 2018 +0000
@@ -7,7 +7,7 @@
 Serial command(USBTX, USBRX);
 
 #define DEBUG 1
-#define  VELOCITY 1000 // ms
+#define  VELOCITY 200 // ms
 
 
 
@@ -21,13 +21,8 @@
     #endif  
 }
 
-void clr_arr()
-{ for(int i=0;i<5;i++)
-{
-    array[i]=0;
-    }}
 
-int recibe (void)
+uint32_t recibe (void)
 {
     char ini=command.getc();
     while(ini!='<')
@@ -627,15 +622,11 @@
 
 int main() {
     init_display();
+    debug_m("inicio");
     while(1){
        while(recibe()==0);
        new_read();
-           for(int i=0;i<8;i++){
             act_matrix(matrix_tmp);
-            imp_fig();
-            //printMatrix(matrix_act);
-            //desplazar_fila();
-            
-        }  
+            imp_fig(); 
        } 
     }