Page 1 of 1

serialLCD problem

Posted: Sun Apr 04, 2010 2:57 pm
by itsthemedication
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

Re: serialLCD problem

Posted: Sun Apr 04, 2010 6:03 pm
by itsthemedication
Never mind. I saw it as soon as I posted. It's the println instead of print - I had resued code from another example.