testando

Dependencies:   mbed TextLCD2

Revision:
23:1c74f54c9d4a
Parent:
20:81a44a25b21d
Child:
24:38820e43b9fe
--- a/main_PM.cpp	Tue May 26 12:33:12 2020 +0000
+++ b/main_PM.cpp	Tue May 26 12:53:29 2020 +0000
@@ -63,8 +63,8 @@
     printf("\n%i",est_z);
     while(1) {
          int solta = 1;
-         tecla = teclado.ReadKey();               //read the current key pressed
-         if(tecla == '\0') solta = 1;             //set the flag when all keys are released
+         tecla = teclado.ReadKey();               //leitura da tecla apertada
+         if(tecla == '\0') solta = 1;             //todas as teclas soltas
          if((tecla != '\0') && (solta == 1)) {    //if a key is pressed AND previous key was released
              printf("%c\n", tecla);
              solta = 0;                           //clear the flag to indicate that key is still pressed