How to clear a single line of an 16x2 LCD?

Go To Last Post
3 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I'm interfacing an 16x2 LCD with my AVR, and i'm printing more than one message in the second line on the LCD in different conditions, but i found that if i used in the first condition 10 places from the 16 places and then used in the second condition 8 places i found that the last 2 places from the 10 is still there, i know that this command 0x01 clears the display, but is there is any way to clear just the second line

This topic has a solution.
Last Edited: Tue. Jun 13, 2017 - 02:38 PM
This reply has been marked as the solution. 
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 1

Write 16 spaces...

 

or... add extra spaces to your text to overwrite the previous text/numbers

 

Ross McKenzie ValuSoft Melbourne Australia

Last Edited: Tue. Jun 13, 2017 - 02:32 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Thank you , i thought there is some kind a command that i can use.