I have 2 Serials in Arduino
Serial = To print data string in serial (dataRaspi)
Serial1 = To read the datas from "Serial1" and print this out on LCD Screen.
Here is my Code
#include <LiquidCrystal.h>
LiquidCrystal lcd(52, 50, 48, 46, 44, 42);
int byteRead;
void setup()
{
Serial.begin(9600);
Serial1.begin(9600); //INTIALISING THE SERIAL PORT
lcd.begin(16, 2);
}
void loop()
{
**this is listing to print data string to Serial**
dataRaspi = "$" + data_yaw + "|" + data_pitch + "|" + data_roll + "|" + data_lat + "|" + data_lon + "|" + data_airSpd + "|" + data_alt_qnh + "#";
Serial.println(dataRaspi);
delay(1);
**this is listing to read data from Serial1**
if(Serial1.available())
{
while(Serial1.available < 0)
byteRead = Serial1.read;
lcd.print(byteRead);
}
The Question is...
my lcd got blank if i give a series of string input to serial1 like "qwerty". How to display the result from serial1 to my lcd display?