Você está na página 1de 1

void loop(){

{

if(Serial.available())
{
/* lcd.setCursor(0,0);
lcd.print("Digite o Valor A");

char key = keypad.getKey(); //Obtm tecla pressionada
if (key != NO_KEY)
{ //Se foi pressionada uma tecla:

if ( key == '0' || key == '1' || key == '2'
|| key == '3' || key == '.' || key == '*') */


do {
c=Serial.read();
matriz[x]=c;
Serial.print(matriz[x],DEC);
x++;
delay(1); //Delay para o Arduino no perder o dado da Ser
ial
}while(c!='\end1');
matriz[x-1]='\0';
Serial.print(matriz);
str=matriz;
lcd.clear();
lcd.setCursor(0,0);
lcd.print(str);
beep(500);
delay(500);
}
}

}

Você também pode gostar