Well, I have shifted letters to right edge, instead of left, and for text it indeed works, but when there is need to display the graphics...
I'm using LCDOUT due it's simplicity and low memory use.
The code below occupies less than 1k of memory (font data stored in eeprom), and allows you to have 4 lines X 18 characters text display with all custom letters on graphical display.
Code:
C=0 '0=1st line, 8=2nd line, 16=3rd line and 24=4th line
arraywrite topline, ["place text here "]
GOSUB GCODER
stop
GCODER:
FOR X=0 TO 17 step 2 'READ ARRAY INTO VARIABLE, ARRAY MEMBER CHAR=EEPROM OFFSET
Y=(topline[x]-65)*8
Z=(topline[x+1]-65)*8 'READ INTO VARIABLE AS TWINS
FOR I=0 TO 7 'HELPER LOOP FOR CHARACTER READING
READ Y+I,A 'READ EEPROM BYTES INTO VAR
READ Z+I,B
LCDOUT $FE,$80+i+c 'UPDATE Y POSITION
LCDOUT $FE,$80+x/2 'UPDATE X POSITION
if topline[x]=32 then a=0
if topline[x+1]=32 then b=0 'blanker
LCDOUT a
LCDOUT b 'WRITE TO SCREEN
'pause 10
NEXT I
NEXT X
return
Bookmarks