SparkFun Forums 

Where electronics enthusiasts find answers.

Your source for all things Atmel.
By itsthemedication
#97753
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,
Code: Select all
 
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