Brahian Stiv Sanchez Giraldo / Mbed 2 deprecated tetrispon

Dependencies:   mbed

Revision:
3:8a8ff76e84bc
Parent:
2:15facba8b8b4
--- a/main.cpp	Sat Nov 17 04:44:57 2018 +0000
+++ b/main.cpp	Sun Nov 18 04:56:35 2018 +0000
@@ -4,7 +4,7 @@
 #include "funcion_pinpon.h"
 #include "funcion_matriz.h"
 
-//Ticker inter();
+Ticker inter;
 
 int main()
 {
@@ -52,6 +52,7 @@
                 
                 case 2://contenido del juego de tetris
                 borrar();
+                inter.attach(&mover_fig,0.18);
                     while(1)
                     {
                         while(read_command()==0);
@@ -60,13 +61,14 @@
                             for (cont=0;cont<fila;cont++)
                     {     
                 analogo(); 
-                //inter.attach(&mover_fig, 5);
+                rotar_fig();
                 mover_fig();
                 act_matrix(mat_tmp);
                 imp_mat(mat_tmp);
                 wait_ms(500);
                     }
                 guardar_mat(mat_tmp);
+                most_fail();
                 elim_lin();
                     }
                     }