Projeto Mecatrônico
/
ProjetoMecatronico
testando
Diff: main_PM.cpp
- Revision:
- 110:3d7544ac65bf
- Parent:
- 109:cbdf4aaa4da1
--- a/main_PM.cpp Tue Jun 23 01:53:28 2020 +0000 +++ b/main_PM.cpp Tue Jun 23 02:17:03 2020 +0000 @@ -568,17 +568,17 @@ status_tela="salvo_conf_vol_pega";} else if(tecla =='4' && status_tela =="salvo_confirmacao"){ funcao_salvo_agree_solta_vol(); //volumes configurados por cada pipeta. (programa.vol_solta_pipeta) - lcd.locate(2,0);lcd.printf("%d",volume_solta_1[programa]); - lcd.locate(9,0);lcd.printf("%d",volume_solta_2[programa]); - lcd.locate(17,0);lcd.printf("%d",volume_solta_3[programa]); + lcd.locate(2,0);lcd.printf("%.f",volume_solta_1[programa]); + lcd.locate(9,0);lcd.printf("%.f",volume_solta_2[programa]); + lcd.locate(17,0);lcd.printf("%.f",volume_solta_3[programa]); - lcd.locate(2,1);lcd.printf("%d",volume_solta_4[programa]); - lcd.locate(9,1);lcd.printf("%d",volume_solta_5[programa]); - lcd.locate(17,1);lcd.printf("%d",volume_solta_6[programa]); + lcd.locate(2,1);lcd.printf("%.f",volume_solta_4[programa]); + lcd.locate(9,1);lcd.printf("%.f",volume_solta_5[programa]); + lcd.locate(17,1);lcd.printf("%.f",volume_solta_6[programa]); - lcd.locate(2,2);lcd.printf("%d",volume_solta_7[programa]); - lcd.locate(8,2);lcd.printf("%d",volume_solta_8[programa]); - lcd.locate(17,2);lcd.printf("%d",volume_solta_9[programa]); + lcd.locate(2,2);lcd.printf("%.f",volume_solta_7[programa]); + lcd.locate(8,2);lcd.printf("%.f",volume_solta_8[programa]); + lcd.locate(17,2);lcd.printf("%.f",volume_solta_9[programa]); status_tela="salvo_conf_vol_solta";} else if(tecla =='B' && status_tela =="salvo_confirmacao"){ funcao_salvo1(); @@ -718,17 +718,17 @@ funcao_salvo_vol_solta_modifica(); wait(5); funcao_salvo_agree_solta_vol(); - lcd.locate(2,0);lcd.printf("%d",volume_solta_1[programa]); - lcd.locate(9,0);lcd.printf("%d",volume_solta_2[programa]); - lcd.locate(17,0);lcd.printf("%d",volume_solta_3[programa]); + lcd.locate(2,0);lcd.printf("%.f",volume_solta_1[programa]); + lcd.locate(9,0);lcd.printf("%.f",volume_solta_2[programa]); + lcd.locate(17,0);lcd.printf("%.f",volume_solta_3[programa]); - lcd.locate(2,1);lcd.printf("%d",volume_solta_4[programa]); - lcd.locate(9,1);lcd.printf("%d",volume_solta_5[programa]); - lcd.locate(17,1);lcd.printf("%d",volume_solta_6[programa]); + lcd.locate(2,1);lcd.printf("%.f",volume_solta_4[programa]); + lcd.locate(9,1);lcd.printf("%.f",volume_solta_5[programa]); + lcd.locate(17,1);lcd.printf("%.f",volume_solta_6[programa]); - lcd.locate(2,2);lcd.printf("%d",volume_solta_7[programa]); - lcd.locate(9,2);lcd.printf("%d",volume_solta_8[programa]); - lcd.locate(17,2);lcd.printf("%d",volume_solta_9[programa]); + lcd.locate(2,2);lcd.printf("%.f",volume_solta_7[programa]); + lcd.locate(9,2);lcd.printf("%.f",volume_solta_8[programa]); + lcd.locate(17,2);lcd.printf("%.f",volume_solta_9[programa]); bool cleber = 1; while(cleber){ tecla = pega_tecla(); @@ -1333,17 +1333,17 @@ else if(tecla=='2' && status_tela=="solta_vol"){ funcao_solta_vol_cada(); - lcd.locate(11,0);lcd.printf("%d",volume_solta_1[programa]); - lcd.locate(14,0);lcd.printf("%d",volume_solta_2[programa]); - lcd.locate(17,0);lcd.printf("%d",volume_solta_3[programa]); + lcd.locate(11,0);lcd.printf("%.f",volume_solta_1[programa]); + lcd.locate(14,0);lcd.printf("%.f",volume_solta_2[programa]); + lcd.locate(17,0);lcd.printf("%.f",volume_solta_3[programa]); - lcd.locate(11,1);lcd.printf("%d",volume_solta_4[programa]); - lcd.locate(14,1);lcd.printf("%d",volume_solta_5[programa]); - lcd.locate(17,1);lcd.printf("%d",volume_solta_6[programa]); + lcd.locate(11,1);lcd.printf("%.f",volume_solta_4[programa]); + lcd.locate(14,1);lcd.printf("%.f",volume_solta_5[programa]); + lcd.locate(17,1);lcd.printf("%.f",volume_solta_6[programa]); - lcd.locate(11,2);lcd.printf("%d",volume_solta_7[programa]); - lcd.locate(14,2);lcd.printf("%d",volume_solta_8[programa]); - lcd.locate(17,2);lcd.printf("%d",volume_solta_9[programa]); + lcd.locate(11,2);lcd.printf("%.f",volume_solta_7[programa]); + lcd.locate(14,2);lcd.printf("%.f",volume_solta_8[programa]); + lcd.locate(17,2);lcd.printf("%.f",volume_solta_9[programa]); status_tela="solta_vol_dif"; } else if(tecla=='B' && status_tela=="solta_vol"){