Hi all,
at the moment im working with a lcd screen connected to my Arduino.
I have a lcd screen with 2 rows. I was wondering if there is a way to clear only the second row like:
lcd.clear(0.1)
but this is not a option is there a other way for this?
You can overwrite the line with spaces
Create your own function that writes a line of spaces to your chosen row of the LCD
void clearRow(byte rowToClear)
{
lcd.setCursor(0, rowToClear);
lcd.print(" ");
}
Call it with the row number to clear eg
clearRow(0); //clear the first row of the LCD
clearRow(1); //clear the second row of the LCD
You could also position the cursor in the function ready for the next print if that was helpful and even pass the column as a parameter