I've just discovered how to generate custom characters on an alphanumeric LCD display - I'm sure that everybody else discovered this ages ago. All the same, I've attached a small application to generate the print string, as well as a plugin .mcp file (although I'm not sure that I've done this right).
It is possible to generate the characters 0 - 7 in character ram (CGRAM) by sending Print $FE, followed by the number $40 - $78 for the chr start address in CGRAM, followed by eight values to represent the 5 LSB for the 8 rows of each character, e.g. Print $FE,$40,$E4,$EE,$FF,$EE,$EE,$EE,$EE,$E0 for chr(0).
Then to use these characters, simply print 0 to 7, e.g. Print At 1,1, 0
Hi, its great to see you visiting our forum. Why not try Proton Compiler for FREE?
Download the FREE version of Proton Compiler, Its called Amicus18 and its available from HERE
Already using proton Compiler??? Get rid of these pesky messages... get LICENSED USER STATUS
I hope that the app is self-explanatory. Click to swap pixel state, select chr number, then cut & paste print string into app.
Example code for 8 chrs:
Regards, StevenCode:Print $FE,$40,$E4,$EE,$FF,$EE,$EE,$EE,$EE,$E0 '$FE,$40 for CGRAM for user chr 0 Print $FE,$48,$E4,$EE,$F1,$EE,$EE,$EE,$EE,$E0 '$FE,$48 for CGRAM for user chr 1 etc. (8 chrs possible) ($40,$48,$50,$58,$60,$68,$70,$78) Print $FE,$50,$E4,$EA,$F1,$EA,$EE,$EE,$EE,$E0 Print $FE,$58,$EE,$EE,$EE,$EE,$FF,$EE,$E4,$E0 Print $FE,$60,$EE,$EE,$EE,$EE,$F1,$EE,$E4,$E0 Print $FE,$68,$EE,$EE,$EE,$EA,$F1,$EA,$E4,$E0 Print $FE,$70,$E0,$E0,$E0,$E4,$E0,$E4,$E0,$E0 Print $FE,$78,$E0,$E2,$E2,$E4,$E4,$E8,$E8,$E0 Print At 1,1, 0,1,2,3,4,5,6,7


Reply With Quote


