User`s manual

OP710080
Graphics Programming
To initialize a font information structure (of type struct
_
fontInfo),
you can call op71XFontInit for a font stored in xmem.
To display a bitmap, call op71XPutBitmap to display a bitmap stored in
xmem.
Printing Text
Printing text involves setting the font information structures. Call
void op71XFontInit(struct _fontInfo *pInfo,
char pixWidth, char pixHeight,
unsigned startChar, unsigned endChar,
unsigned long xmemBuffer);
to initialize a font information structure if the font is stored in xmem.
pInfo points to a font information structure, pixWidth is the width of
each character (fixed pitch), pixHeight is the height of each character,
startChar is the ASCII code of the first character in the font, endChar is
the ASCII code of the last character in the font, and xmemBuffer is a
physical address pointing to the font table stored in xmem.
Rabbit Semiconductor supplies five font sizes for the OP7100. The
smallest font, engFont6x8, compiles to xmem, and each character is 6
pixels wide by 8 pixels high. The largest font, engFont17x35, also
compiles to xmem, and each character is 17 pixels wide by 35 pixels high.
When you need to print text to the LCD, call
void op71Printf(int x, int y,
struct
_
fontInfo *pInfo, char *fmt,...);
where (x,y) is the upper left corner of the text, pInfo points to a font
information structure, fmt points to a format string (much like printf),
and the rest of the parameters specify what to print for each field in the
format string (same as printf).