Mikroelektronika MIKROE-742 데이터 시트
T6963C_Image
T6963C_Sprite
462
MIKROELEKTRONIKA
- SOFTWARE AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD
Libraries
mikroPASCAL PRO for AVR
CHAPTER 6
Prototype
procedure T6963C_Image(const code pic : ^byte);
Returns
Nothing.
Description
Displays bitmap on Glcd.
Parameters :
-
pic
: image to be displayed. Bitmap array can be located in both code and
RAM memory (due to the mikroPascal PRO for AVR pointer to const and
pointer to RAM equivalency).
pointer to RAM equivalency).
Use the mikroPascal’s integrated Glcd Bitmap Editor (menu option Tools › Glcd
Bitmap Editor) to convert image to a constant array suitable for displaying on Glcd.
Bitmap Editor) to convert image to a constant array suitable for displaying on Glcd.
Requires
Toshiba Glcd module needs to be initialized. See the T6963C_Init routine.
Example
T6963C_Image(mc);
Prototype
procedure T6963C_Sprite(px, py : byte; const pic : ^byte; sx, sy
: byte);
: byte);
Returns
Nothing.
Description
Fills graphic rectangle area (px, py) to (px+sx, py+sy) with custom size picture.
Parameters :
-
px
: x coordinate of the upper left picture corner. Valid values: multiples of the
font width
-
py
: y coordinate of the upper left picture corner
-
pic
: picture to be displayed
-
sx
: picture width. Valid values: multiples of the font width
-
sy
: picture height
Note: If px and sx parameters are not multiples of the font width they will be
scaled to the nearest lower number that is a multiple of the font width.
scaled to the nearest lower number that is a multiple of the font width.
Requires
Toshiba Glcd module needs to be initialized. See the T6963C_Init routine.
Example
T6963C_Sprite(76, 4, einstein, 88, 119); // draw a sprite