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:
- 2:15facba8b8b4
- Parent:
- 1:ebfb091d5b63
- Child:
- 3:8a8ff76e84bc
--- a/main.cpp Sat Nov 17 02:16:21 2018 +0000 +++ b/main.cpp Sat Nov 17 04:44:57 2018 +0000 @@ -4,7 +4,7 @@ #include "funcion_pinpon.h" #include "funcion_matriz.h" -Ticker inter(); +//Ticker inter(); int main() { @@ -17,11 +17,11 @@ { analogo();//se llama funcion para leer voltaje - if(msx<1500)//condicional que lleva al usuario al primer caso, en este caso juego de pin pon + if(mx<0.4)//condicional que lleva al usuario al primer caso, en este caso juego de pin pon { op=1;//contiene las funciones del juego de pin pon } - if(msx>2000)//condicional que lleva al usuario al primer caso, en este caso juego de tetris + if(mx>0.7)//condicional que lleva al usuario al primer caso, en este caso juego de tetris { op=2;//contiene las funciones del juego de pin pon } @@ -52,7 +52,6 @@ case 2://contenido del juego de tetris borrar(); - inter.attach(&mover_fig,5); while(1) { while(read_command()==0); @@ -60,8 +59,8 @@ act_matrix(mat_tmp); for (cont=0;cont<fila;cont++) { - analogoo(); - + analogo(); + //inter.attach(&mover_fig, 5); mover_fig(); act_matrix(mat_tmp); imp_mat(mat_tmp);