CFAG160160B font editor and C code

Here is an updated version of my bitmap font editor and C code driver, customized for the CFAG160 display, which has row oriented bytes instead of column oriented like the CFAX series. The font editor, which was originally presented in this thread:
https://forum.crystalfontz.com/showthread.php?s=&threadid=3619
now has an option on the output file to select row or column format.
-------------------------------------------------------------------------
NOTICE: The program referred to here has been superceeded by a much slicker version. If you have downloaded this version, you should switch to the new version here:
https://forum.crystalfontz.com/showthread.php?p=28164#post28164
---------------------------------------------------------------------------
The C code driver is essentially similar to the one presented in that same thread, except for being modified for row-byte operation. The pixel writes are non-destructive (the new data is ORed with the old data). There are point plot and line draw routines, also. You can see a sample of the screen output at the end of this thread:
https://forum.crystalfontz.com/showthread.php?s=&threadid=4420&perpage=15&pagenumber=2

attachment.php


One thing to mention... this code was developed on the Zilog Z8 encore development board, and contains a few quirks to force the font tables into rom, and to deal with the small ram size (e.g. using the "const" and "rom" keywords).
Looking for additional LCD resources? Check out our LCD blog for the latest developments in LCD technology.
 

Attachments

  • cfag160_c_code.zip
    30.4 KB · Views: 2,527

cpboater

New member
Code question

I do not understand what the 2 high lighted variables should be (see attachment).
Could you please clarify.

Thank you
Bill
 

Attachments

  • CFAG160160 code.JPG
    CFAG160160 code.JPG
    60.3 KB · Views: 688
Those aren't variables, they are typecasts, which causes the variable or result that follows the typecast to be converted to a WORD (16 bit unsigned int).
 
Top