I have your 16x2 serial LCD, and am using it with a Mega. I use the sparkfun serialLCD commands listed at arduino.cc. With a serial1.begin(9600) and this code,
void loop() {
// other code
clearLCD;
selectLineOne();
Serial1.print(tempF,1);
Serial1.println(" deg F ");
selectLineTwo();
Serial1.print(tempC,1);
Serial1.println(" deg C ");
delay(500);
}
I get this output,
76.3 deg F || |||
24.6 deg C || |||
Everything works and updates, but what’s with the five lines? They will not go away. If I put spaces clear across, they will wrap back into the display.
Thanks