User manual
mikroPascal PRO for PIC32
MikroElektronika
485
SPI_T6963C_image
SPI_T6963C_PartialImage
Prototype
procedure SPI_T6963C_image(pic : ^ const byte);
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 PIC32 pointer to const and pointer to RAM equivalency).
Returns Nothing.
Requires Toshiba Glcd module needs to be initialized. See SPI_T6963C_Cong routine.
Example
SPI_T6963C_image(my_image);
Notes Image dimension must match the display dimension.
Use the integrated Glcd Bitmap Editor (menu option Tools › Glcd Bitmap Editor) to convert image to
a constant array suitable for displaying on Glcd.
Prototype
procedure SPI_T6963C_PartialImage(x_left, y_top, width, height, picture_
width, picture_height : word; const image : ^byte);
Description Displays a partial area of the image on a desired location.
Parameters - x_left: x coordinate of the desired location (upper left coordinate).
- y_top: y coordinate of the desired location (upper left coordinate).
- width: desired image width.
- height: desired image height.
- picture_width: width of the original image.
- picture_height: height of the original image.
- image: image to be displayed. Bitmap array can be located in both code and RAM memory (due to
the mikroPascal PRO for PIC pointer to const and pointer to RAM equivalency).
Returns Nothing.
Requires Toshiba Glcd module needs to be initialized. See SPI_T6963C_Cong routine.
Example
// Draws a 10x15 part of the image starting from the upper left corner on
the coordinate (10,12). Original image size is 16x32.
SPI_T6963C_PartialImage(10, 12, 10, 15, 16, 32, @image);
Notes Use the integrated Glcd Bitmap Editor (menu option Tools › Glcd Bitmap Editor) to convert image to
a constant array suitable for displaying on Glcd.