OP7100
78
s
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
.
Z-World 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
).
Summary of Contents for OP7100
Page 1: ...OP7100 Serial Graphic Display User s Manual 019 0065 020418 J ...
Page 10: ...OP7100 x s About This Manual ...
Page 16: ...OP7100 16 s Overview ...
Page 50: ...OP7100 50 s Hardware ...
Page 72: ...OP7100 72 s Software ...
Page 80: ...OP7100 80 s Graphics Programming ...
Page 86: ...OP7100 86 s Installation ...
Page 96: ...OP7100 96 s Specifications ...
Page 110: ...110 s Serial Interface Board 2 OP7100 ...
Page 111: ...OP7100 Backup Battery s 111 APPENDIX E BACKUP BATTERY ...
Page 114: ...OP7100 114 s Backup Battery ...
Page 122: ...OP7100 122 s Index ...