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.
Diff: main.cpp
- 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();
}
}