See Keith's method (post #5) from the following link for an easy way to clear a line.
http://www.picbasic.co.uk/forum/showthread.php?t=4137
(note - you may need to adjust for your display width)
See Keith's method (post #5) from the following link for an easy way to clear a line.
http://www.picbasic.co.uk/forum/showthread.php?t=4137
(note - you may need to adjust for your display width)
Paul Borgmeier
Salt Lake City, UT
USA
__________________
Ok great.....thanks.
I assumed there would be something you could throw in quotes....lo and behold it's a simple "blank". (Not mentioned anywhere in the PBP handbook, by the way!).
Of course, it's either something that simple sometimes or something that resembles assembly language.
I'm sure I'll have more questions as I find the time to work on the code.
First impression though, is that LCDOUT is a real lifesaver and pretty easy to work with.
It's certainly inferred by the PBP manualOriginally Posted by Michael
- see Section 4.8 and Section 4.9 and also demonstrated in an unlikely place, Section 5.24 FOR..NEXT
However for completeness and the main purpose of my response, you also can use 32 instead of " "
Paul Borgmeier
Salt Lake City, UT
USA
__________________
Sorry, I didn't read closely enough.
I was under the impression the word "blank" would clear the word.
So you "space,space,space,etc" instead? $20 is the hex for the space key?
So if you have a 4 letter word to clear at line 1 cursor 1.....
LCDOUT $FE,$80, $20,$20,$20,$20 (?)
How is it written?
THANKS.
To put four blank spaces at the beginning of the 1st line:
LCDOUT $FE, $80, " "
It's a simple as that. And nothing else currently displayed on the LCD will be changed. Controlling LCD's with PBPro is awfully easy. I've had a lot more problems with quirky LCD drivers that want to work in 8 line mode but not in 4 line. But at least the programming is easy.
A quick edit. The forum software seems to want to eliminate extra spaces in my line of code, but just push the space bar on your keyboard 4 times with quote marks on either end.
Last edited by mugwamp; - 27th July 2006 at 20:34.
You can:
a) just write on top of that location - no need to clear unless you want to
b) clear 4 digits with any of the following
orCode:LCDOUT $FE, $80, REP " " \4 ' perfect the way you have it
orCode:LCDOUT $FE, $80, " " ' 4 spaces between the quotes
orCode:LCDOUT $FE, $80, 32,32,32,32
orCode:LCDOUT $FE, $80, $20,$20,$20,$20
etc.
Paul Borgmeier
Salt Lake City, UT
USA
__________________
Wow...thanks Paul. I really appreciate it when I get specific information like that.
It helps me learn "completely".
Can't believe I actually had the last one right....it was an assumption. I'll stick with 4 blank spaces.....my mind likes the higher level language.
I have poor retention for hex and decimal equivalents and the like.
Some people can retain that type of info....I can't.
Bookmarks