Projeto Mecatrônico
/
ProjetoMecatronico
testando
Diff: main_PM.cpp
- Revision:
- 39:f73cdb65c16c
- Parent:
- 34:1b5a00c55376
--- a/main_PM.cpp Wed May 27 15:13:23 2020 +0000 +++ b/main_PM.cpp Wed May 27 18:56:28 2020 +0000 @@ -42,7 +42,7 @@ //pinos da placa usados na biblioteca do LCD //pinos do teclado -Keypad teclado(PA_6, PA_7, PB_6, PC_7, PB_7, PC_13, PC_14, PC_15); +Keypad teclado(PB_15, PB_11, PB_14, PB_13, PA_4, PB_0, PC_14, PC_15); //pinos de saída para os motores //eixo x @@ -170,12 +170,12 @@ if(tecla =='1' && status_tela == "inicio"){ funcao_pega1(); - wait(1); + wait(3); funcao_pega2(); status_tela = "novo";} else if(tecla == '2' && status_tela == "inicio"){ funcao_salvo1(); - wait(1); + wait(3); funcao_salvo2(); status_tela = "salvo";} if(tecla =='1' && status_tela =="novo"){ @@ -194,7 +194,7 @@ multiplicador*=10; } else if(tecla == 'A'){ - lcd.printf("Volume: %d", volume); + printf("Volume: %d", volume); continuar = 0; } } @@ -225,7 +225,7 @@ status_tela = "novo";} if(tecla == 'A' && status_tela == "forma_quad"){ funcao_pega1(); - wait(1); + wait(3); funcao_pega2(); status_tela ="inicio";} else if(tecla == 'B' && status_tela == "forma_quad"){ @@ -233,7 +233,7 @@ status_tela = "forma";} else if(tecla == 'A' && status_tela == "forma_red"){ funcao_pega1(); - wait(1); + wait(3); funcao_pega2(); status_tela ="inicio";} else if(tecla == 'B' && status_tela == "forma_red"){ @@ -241,7 +241,7 @@ status_tela = "forma";} else if(tecla == 'A' && status_tela == "volume"){ funcao_pega1(); - wait(1); + wait(3); funcao_pega2(); status_tela ="inicio";} else if( tecla == 'B' && status_tela == "volume"){ @@ -255,7 +255,7 @@ status_tela = "forma";} if(tecla == 'A' && status_tela == "pos_y"){ funcao_pega1(); - wait(1); + wait(3); funcao_pega2(); status_tela ="inicio";} else if(tecla == 'B' && status_tela == "pos_y"){