0% found this document useful (0 votes)
14 views1 page

Audrino - 5

The document contains code snippets for reading data from a serial input and displaying it on an LCD screen. It manages cursor positions on the LCD to print data across multiple lines based on certain conditions. The code also includes delays to control the timing of the display updates.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
14 views1 page

Audrino - 5

The document contains code snippets for reading data from a serial input and displaying it on an LCD screen. It manages cursor positions on the LCD to print data across multiple lines based on certain conditions. The code also includes delays to control the timing of the display updates.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

data[idx++] = Serial.

read(); // read &


print
lcd.print(data[idx-1]);
delay(wait);
}
}
else
{
lcd.setCursor(0,2);; //move back to the second
position
lcd.print(data[idx-1]);
delay(wait);
}
}
else //otherwise the value equals 32 and we are at the
end of the second line
{

lcd.setCursor(0,3);; //third line


lcd.print(data[idx-1]);
delay(wait);
}
}
else // it equals 20 and you are at the end of the first
line
{
lcd.setCursor(0,4);; //so go to the fouth line
data[idx++] = Serial.read(); //read & print
lcd.print(data[idx-1]);
delay(wait);
}
}

} //end while

idx = 0;

You might also like