![](templates/subSilver/images/CCSLogo.jpg) |
![CCS C Software and Maintenance Offers](templates/subSilver/images/forumAd6.jpg) |
View previous topic :: View next topic |
Author |
Message |
ProgrammerHoby Guest
|
LCD clear!! |
Posted: Sat Feb 11, 2006 10:22 pm |
|
|
Is there a way or a function to clear a line of the lcd.for example if you want to clear line 1 or line 2. Code: | lcd_putc(clear_line1 or clear_line2)? | instead of clearing the entire lcd display!!! ![Shocked](images/smiles/icon_eek.gif) |
|
![](templates/subSilver/images/spacer.gif) |
Guest
|
|
Posted: Sat Feb 11, 2006 11:01 pm |
|
|
Why not print a blank line? |
|
![](templates/subSilver/images/spacer.gif) |
ProgrammerHoby Guest
|
How do you do that |
Posted: Sat Feb 11, 2006 11:09 pm |
|
|
How do you print a blank line on the lcd? ![Question](images/smiles/icon_question.gif) |
|
![](templates/subSilver/images/spacer.gif) |
Ttelmah Guest
|
|
Posted: Sun Feb 12, 2006 3:28 am |
|
|
Er. lcd_putc(" ");
Use as many spaces as you want.
However you can also be 'sneaky'. Suppose you have a message like:
"The value is : 29.3".
You can clear the screen at the beginning, and print the text:
"The value is :"
Then for the display, use lcd_gotoxy, to place your new 'writing' point, where you want the number to be (just after the ':' here), print (say) ten spaces, then use lcd_gotoxy again to go back to the same point where the number wants to go, and print the number. Repeat this as the number updates. This way only the part of the display that you want to update, has to change, giving 'cleaner' displays.
Writing (say), ten spaces, and then the required number into the same area, only takes typically 50uSec for each 'goto', and a few uSec each for the character writes.
Best Wishes |
|
![](templates/subSilver/images/spacer.gif) |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|