Quote Originally Posted by breesy
Thanks, that was it.. Its amazing how I could miss it after reading through the code so many times..
We have all been there and done that in one way or another

One more quick question, is it possible to clear a single line of an lcd display, or atleast fill it with blank characters?
This is how I do it. I have a variable called "line" that I use for specifying which line of the LCD I want to go to the beginning of, and then specify CONstants for Line1, Line2 etc

This is the sub that I use to clear the LCD (actually it fills it with spaces)

Code:
       Line        var byte            ' Line of Display to act on
       Line1       con $02             ' Home position
       Line2       con $C0             ' Start of Line2

.......

        Line = Line2
        Gosub Blankline


.......

BlankLine:       ' **** This clears the whole line of the display ****
        LCDOut $FE, Line, REP " "\16 ' Send 16 spaces to clear the line
        Return   ' **** End of BlankLine ***
This could be extended further by changing the "16" to a variable name thereby giving the ability for a varying number of repeated characters.

You could go the whole hog and change it to LCDout $FE, Line,REP Char\Charcount
which would allow you to specify the Line, Character and number of characters to write to the display but I guess than you would have to call it something other than "Blankline"