To initialize a font information structure (of type struct _fontInfo
參數(shù)資料
型號: 101-0303
廠商: Rabbit Semiconductor
文件頁數(shù): 106/126頁
文件大?。?/td> 0K
描述: SMARTSCREEN OP7100 DISPLAY
標準包裝: 1
系列: SBC
模塊/板類型: 單板計算機模塊,帶顯示器
適用于相關產(chǎn)品: 單板計算機
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).
相關PDF資料
PDF描述
101-0383 MODULE RABBITCORE RCM2020
101-0435 MODULE RABBITCORE RCM2110
101-0453 MODULE RABBITCORE RCM2300
101-0494 MODULE RABBITCORE RCM2250
101-0518 MODULE RABBITCORE RCM3110
相關代理商/技術參數(shù)
參數(shù)描述
10103042SP 制造商:Pentair Technical Products / Hoffman 功能描述:HTR COMP 240V 25W W ADH TIES
1010-3-05-00-00-00-01-0 功能描述:電路板硬件 - PCB PRESS FIT WRAPOST RECPT 3 WRAPS RoHS:否 制造商:Harwin 類型:Shield Clip 長度:9.4 mm 螺紋大小: 外徑: 材料:Beryllium Copper 電鍍:Tin
1010-3-05-01-00-00-01-0 功能描述:電路板硬件 - PCB 200u SN/PB OVER NI 3 WRAPS RoHS:否 制造商:Harwin 類型:Shield Clip 長度:9.4 mm 螺紋大小: 外徑: 材料:Beryllium Copper 電鍍:Tin
1010-3-05-15-00-00-01-0 功能描述:電路板硬件 - PCB 10u AU OVER NI 3 WRAPS RoHS:否 制造商:Harwin 類型:Shield Clip 長度:9.4 mm 螺紋大小: 外徑: 材料:Beryllium Copper 電鍍:Tin
1010-3-05-21-00-00-01-0 功能描述:電路板硬件 - PCB 20u AU OVER NI 3 WRAPS RoHS:否 制造商:Harwin 類型:Shield Clip 長度:9.4 mm 螺紋大小: 外徑: 材料:Beryllium Copper 電鍍:Tin