OP7100
80 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
).
Summary of Contents for OP7100
Page 1: ...OP7100 Serial Graphic Display User s Manual 019 0065 070831 O ...
Page 10: ...OP7100 x About This Manual ...
Page 16: ...OP7100 16 Overview ...
Page 74: ...OP7100 74 Software ...
Page 82: ...OP7100 82 Graphics Programming ...
Page 88: ...OP7100 88 Installation ...
Page 98: ...OP7100 98 Specifications ...
Page 108: ...OP7100 108 Memory I O Map and Interrupt Vectors ...
Page 112: ...112 Serial Interface Board 2 OP7100 ...
Page 113: ...OP7100 Backup Battery 113 APPENDIX E BACKUP BATTERY ...
Page 116: ...OP7100 116 Backup Battery ...
Page 124: ...OP7100 124 Index ...
Page 126: ...XX0000 Schematics ...