
Originally Posted by
earltyso
... I would like to now place my custom characters on the line of my choice for my 4x20. As far as I know my Truly 4x20 lcd has 4 rows and 8 colums for custom characters.
The LCD only has 8 locations for custom characters, and those locations don't relate to any specific rows or columns.
Once you've sent a custom character to the LCD, it can be used any number of times, anywhere on the screen.
For instance, this line creates the Smiley Face in the LCD's CGRAM at location 4 ($60).
Code:
LCDOUT $FE,$60,$00,$0a,$0a,$00,$00,$11,$0e,$00 ; #4 Smiley Face
and this will fill your display with smiley faces.
Code:
LoopCount VAR BYTE
FOR LoopCount = 1 to 80
LCDOUT 4
NEXT LoopCount
Or this will do the same thing as the FOR/NEXT loop
LCDOUT REP 4\80
<hr>
... 128, 192,148, or 212 to choose the start position?????
If you always wanted to start in the first column of each row, those would work.
You can also add an "offset" to those numbers to specify the column.
Code:
Row1 CON 128
Row2 CON 192
Row3 CON 148
Row4 CON 212
LCDOUT $FE,$60,$00,$0a,$0a,$00,$00,$11,$0e,$00 ; #4 Smiley Face
LCDOUT $FE,Row3+10, 4 ; Put a smiley in the middle of Row 3
HTH,
Bookmarks