By the way, if you are sending 5 characters, then you want:
if(Serial1.available() >= 5)
{
for(int n=0; n < 5; n++)
{
LcdRcvPacket[n] = Serial1.read(); // Assign LCD data into a array for processing
}
}
No while loop and NO delay()! Notice also the >= rather than the >.
Thanks for the comments in helping understand what I apparently don't.
I was under the impression that the Serial.Available was in sorts a boolean type as that is how it appears when used in code (if serial.available = True or False then process x). So if there is no serial data in the buffer what does the Serial.avaiable() return? If not 0, which is apparently the first byte of the serial packet. is it "" or just empty? I think this is where I have confusion at least in the end and need to better understand that. Cause this is the root of what confused me onthe while statement which I do understand. I was processing what I had assumed was a boolean response.
Again thanks for the lessons in basic coding oo which I thought I had down.
Maddawg