it compiled with no problem now, but custom character won't display on the lcd, probably I'm still doing it wrong..
I'm expecting a letter 'j' in the 3rd row.
Code:
DEFINE GLCD_CHAR_IN_EEPROM ' store/read character/lookuptable to/from EEPROM
DEFINE GLCD_STRING_IN_EEPROM ' store/read string to/from EEPROM
DEFINE GLCD_USE_SPECIFIC_CHARACTER ' We will define our own set of character to be used
INCLUDE "..\Include\GLCD_NOKIA.PBP" ' Plug the Nokia Driver/Wrapper in here
ASM
CHARTABLESTART
ADDCUSTOMCHAR CHR_CUSTOM_0, 0x04, 0x00, 0x00, 0x00, 0x00
ADDCHAR 'e'
ADDCHAR 'l'
ADDCHAR 'o'
ADDCHAR 'w'
ADDCHAR 'r'
ADDCHAR 'd'
ADDCHAR '!'
CHARTABLEEND
ENDASM
'
'------------------------------< Main program >---------------------------------------------
'
ASM
GLCD_CLS ; Clear the screen (if not initialized yet, it will do automatically)
GLCDOUT_AT?STR 0,0,"Hello World!" ; Show String on Line 0
GLCDOUT_AT?STR 0,1,"Wello World!" ; Show String on Line 1
GLCDOUT_AT?STR 0,2,"j" ; Show 'j' on Line 2
ENDASM
Here:
GOTO Here ' sit & spin
I appreciate the time for helping out.
regards,
tacbanon
Bookmarks